Esempio n. 1
0
 private void UpdateGameState(CatanGame game, IGameUpdate update)
 {
     foreach (var player in game.Players)
     {
         Clients.Client(player.Player.ConnectionId.ToString()).update(update);
     }
 }
Esempio n. 2
0
        public CatanPlayer(CatanGame game, Player player)
            : base((IGame <GameHub>)game, player)
        {
            if (logger.IsInfoEnabled)
            {
                logger.InfoFormat("New Catan Player [{0}] [{1}]", player.Name, this.Color);
            }

            playerUpdate = new PartialPlayerUpdate(Name);
        }