C# 클래스 CloudWars.SpaceBattle.SpaceBattleGame

상속: IGame
파일 보기 프로젝트 열기: pedro-ramirez-suarez/cloudwarsgame

Private Properties

프로퍼티 타입 설명
UpdateMatch void
UpdateMatch void
UpdatePlayer void
UpdateUnit void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
UpdateMatch ( ) : void
UpdateMatch ( object columns, object where ) : void
UpdatePlayer ( object columns, object where ) : void
UpdateUnit ( object columns, object where ) : void

메소드 상세

AcceptChallenge() 공개 메소드

public AcceptChallenge ( System.Guid challengeId ) : Tuple
challengeId System.Guid
리턴 Tuple

ChallengePlayer() 공개 메소드

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

CreateMatch() 공개 메소드

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

Initialize() 공개 메소드

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

MatchFinished() 공개 메소드

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

PauseMatch() 공개 메소드

public PauseMatch ( ) : void
리턴 void

PlayerAttack() 공개 메소드

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

PlayerMoveTo() 공개 메소드

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

PlayerReady() 공개 메소드

public PlayerReady ( System.Guid playerId ) : void
playerId System.Guid
리턴 void

RejectChallenge() 공개 메소드

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

RestartMatch() 공개 메소드

public RestartMatch ( ) : void
리턴 void

SpaceBattleGame() 공개 메소드

public SpaceBattleGame ( ) : System
리턴 System

SpaceBattleGame() 공개 메소드

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