C# Class CloudWars.SpaceBattle.SpaceBattleGame

Inheritance: IGame
Mostrar archivo Open project: pedro-ramirez-suarez/cloudwarsgame

Private Properties

Property Type Description
UpdateMatch void
UpdateMatch void
UpdatePlayer void
UpdateUnit void

Public Methods

Method 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

Method 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 method

public AcceptChallenge ( System.Guid challengeId ) : Tuple
challengeId System.Guid
return Tuple

ChallengePlayer() public method

public ChallengePlayer ( System.Guid fromId, System.Guid toId ) : void
fromId System.Guid
toId System.Guid
return void

CreateMatch() public method

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

Initialize() public method

This is used when the Match is created
public Initialize ( object initialState ) : void
initialState object
return void

MatchFinished() public method

public MatchFinished ( System.Guid winner, System.Guid losser ) : Message
winner System.Guid
losser System.Guid
return CloudWars.Common.Other.Message

PauseMatch() public method

public PauseMatch ( ) : void
return void

PlayerAttack() public method

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

PlayerMoveTo() public method

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

PlayerReady() public method

public PlayerReady ( System.Guid playerId ) : void
playerId System.Guid
return void

RejectChallenge() public method

public RejectChallenge ( System.Guid challengeId ) : string>.Tuple
challengeId System.Guid
return string>.Tuple

RestartMatch() public method

public RestartMatch ( ) : void
return void

SpaceBattleGame() public method

public SpaceBattleGame ( ) : System
return System

SpaceBattleGame() public method

public SpaceBattleGame ( System.Guid matchId, bool loadMatchData ) : System
matchId System.Guid
loadMatchData bool
return System