private void UpdateGameState(CatanGame game, IGameUpdate update) { foreach (var player in game.Players) { Clients.Client(player.Player.ConnectionId.ToString()).update(update); } }
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); }