예제 #1
0
 private void UpdateGameState(AgricolaGame game, IClientGameUpdate update)
 {
     foreach (var player in game.AgricolaPlayers)
     {
         if (!game.FamilyMode)
         {
             update.MyHand = player.Hand;
         }
         Clients.Client(player.Player.ConnectionId.ToString()).update(update);
     }
 }
예제 #2
0
 public AgricolaPlayer(AgricolaGame game, Player player)
     : base((IGame <GameHub>)game, player)
 {
     InitializeState();
 }