Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public AgricolaPlayer(AgricolaGame game, Player player)
     : base((IGame <GameHub>)game, player)
 {
     InitializeState();
 }