C# Class CloudWars.SpaceBattle.SpaceBattleGame

Inheritance: IGame
Afficher le fichier Open project: pedro-ramirez-suarez/cloudwarsgame

Private Properties

Свойство Type Description
UpdateMatch void
UpdateMatch void
UpdatePlayer void
UpdateUnit void

Méthodes publiques

Méthode Description
AcceptChallenge ( System.Guid challengeId ) : Tuple
ChallengePlayer ( System.Guid fromId, System.Guid toId ) : void
CreateMatch ( System.Guid player1, System.Guid player2 ) : void

Create the match and

Initialize ( object initialState ) : void

This is used when the Match is created

MatchFinished ( System.Guid winner, System.Guid losser ) : Message
PauseMatch ( ) : void
PlayerAttack ( Position coordinates, System.Guid playerId ) : Message
PlayerMoveTo ( Position coordinates, System.Guid unitId ) : void
PlayerReady ( System.Guid playerId ) : void
RejectChallenge ( System.Guid challengeId ) : string>.Tuple
RestartMatch ( ) : void
SpaceBattleGame ( ) : System
SpaceBattleGame ( System.Guid matchId, bool loadMatchData ) : System

Private Methods

Méthode Description
UpdateMatch ( ) : void
UpdateMatch ( object columns, object where ) : void
UpdatePlayer ( object columns, object where ) : void
UpdateUnit ( object columns, object where ) : void

Method Details

AcceptChallenge() public méthode

public AcceptChallenge ( System.Guid challengeId ) : Tuple
challengeId System.Guid
Résultat Tuple

ChallengePlayer() public méthode

public ChallengePlayer ( System.Guid fromId, System.Guid toId ) : void
fromId System.Guid
toId System.Guid
Résultat void

CreateMatch() public méthode

Create the match and
public CreateMatch ( System.Guid player1, System.Guid player2 ) : void
player1 System.Guid
player2 System.Guid
Résultat void

Initialize() public méthode

This is used when the Match is created
public Initialize ( object initialState ) : void
initialState object
Résultat void

MatchFinished() public méthode

public MatchFinished ( System.Guid winner, System.Guid losser ) : Message
winner System.Guid
losser System.Guid
Résultat CloudWars.Common.Other.Message

PauseMatch() public méthode

public PauseMatch ( ) : void
Résultat void

PlayerAttack() public méthode

public PlayerAttack ( Position coordinates, System.Guid playerId ) : Message
coordinates CloudWars.Common.Other.Position
playerId System.Guid
Résultat CloudWars.Common.Other.Message

PlayerMoveTo() public méthode

public PlayerMoveTo ( Position coordinates, System.Guid unitId ) : void
coordinates CloudWars.Common.Other.Position
unitId System.Guid
Résultat void

PlayerReady() public méthode

public PlayerReady ( System.Guid playerId ) : void
playerId System.Guid
Résultat void

RejectChallenge() public méthode

public RejectChallenge ( System.Guid challengeId ) : string>.Tuple
challengeId System.Guid
Résultat string>.Tuple

RestartMatch() public méthode

public RestartMatch ( ) : void
Résultat void

SpaceBattleGame() public méthode

public SpaceBattleGame ( ) : System
Résultat System

SpaceBattleGame() public méthode

public SpaceBattleGame ( System.Guid matchId, bool loadMatchData ) : System
matchId System.Guid
loadMatchData bool
Résultat System