예제 #1
0
 public void SendGuess(string word)
 {
     GameSocketRequest.GuessWord(AppContextSingleton.Instance.AppContext.CurrentConnectedUser.UID,
                                 CurrentGame.GID,
                                 CurrentGame.CurrentRound.ID,
                                 word);
 }
 private void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     GameSocketRequest.StartRound(gameService.CurrentGame.GID, AppContextSingleton.Instance.AppContext.CurrentConnectedUser.UID,
                                  gameService.CurrentGame.CurrentRound.ID);
     AppContextSingleton.Instance.AppContext.Timer.Enabled = false;
 }
예제 #3
0
 public void StartGame()
 {
     GameSocketRequest.StartGame(CurrentGame.GID, AppContextSingleton.Instance.AppContext.CurrentConnectedUser.UID);
 }
예제 #4
0
 public void AddVirtualPlayer()
 {
     GameSocketRequest.AddVirtualPlayer(CurrentGame.GID);
 }
예제 #5
0
 public void LeaveCurrentGame()
 {
     GameSocketRequest.LeaveGame(CurrentGame.GID, AppContextSingleton.Instance.AppContext.CurrentConnectedUser.UID);
     CurrentGame = new Game();
 }