コード例 #1
0
ファイル: PacManJoined.cs プロジェクト: QuickUnit/PacmanTlv
 public PacManJoined()
 {
     ServerFacade = ServerFacadeFactory.GetServerFacade();
     ServerFacade.CreateGameX("GameName");
     var pacman = ServerFacade.JoinGameX("GameName", "PacManName", PlayerRole.PacMan);
     GameInstance = ServerFacade.GetGameStateForX(pacman.PlayerId);
 }
コード例 #2
0
 public PacManStartedGame()
 {
     ServerFacade = ServerFacadeFactory.GetServerFacade();
     ServerFacade.CreateGameX("GameName");
     var pacman = ServerFacade.JoinGameX("GameName", "PacManName", PlayerRole.PacMan);
     ServerFacade.UpdateMyWhereabouts(new ServerPollParameters(pacman.PlayerId, 0, 0, true));
     GameInstance = ServerFacade.GetGameStateForX(pacman.PlayerId);
 }
コード例 #3
0
ファイル: GameCreated.cs プロジェクト: QuickUnit/PacmanTlv
 public GameCreated()
 {
     ServerFacade = ServerFacadeFactory.GetServerFacade();
     ServerFacade.CreateGameX("GameName");
     GameInstance = ServerFacade.GetGameStateAsObvserverX("GameName");
 }