public PacManJoined() { ServerFacade = ServerFacadeFactory.GetServerFacade(); ServerFacade.CreateGameX("GameName"); var pacman = ServerFacade.JoinGameX("GameName", "PacManName", PlayerRole.PacMan); GameInstance = ServerFacade.GetGameStateForX(pacman.PlayerId); }
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); }
public GameCreated() { ServerFacade = ServerFacadeFactory.GetServerFacade(); ServerFacade.CreateGameX("GameName"); GameInstance = ServerFacade.GetGameStateAsObvserverX("GameName"); }