public Card(string name, int cost, List<CardAction> cardsActions, Player owner) { this.Name = name; this.Cost = cost; this.CardActions = cardsActions; this.Owner = owner; }
public static void AskClient(Player player, string contextConnectionId) { if (player != null && player.Location != LocationEnum.CIMETARY_CESI) { Game.KingBoard.CountAnwserStandbyFor++; GameHub.Instance._context.Clients.Client(player.IdConnection).askPlayer(); GameHub.Instance._context.Clients.Client(contextConnectionId).waitForTokyoAnswer(); } }
public void AffectCityPlace(Player player) { if(Players.Count(x => x.Location == LocationEnum.CESI_CITY) == 0) { player.VictoryPoint++; EventManager.RaiseEvent(EventEnum.GAIN_VICTORYPOINT, this); player.Location = LocationEnum.CESI_CITY; EventManager.RaiseEvent(EventEnum.ENTER_TOKYO, this); } else if (Players.Count(x => x.Location == LocationEnum.CESI_BAY) == 0 && Players.Count > 4) { player.VictoryPoint++; EventManager.RaiseEvent(EventEnum.GAIN_VICTORYPOINT, this); player.Location = LocationEnum.CESI_BAY; EventManager.RaiseEvent(EventEnum.ENTER_TOKYO, this); } }
public bool IsDead(Player player) { return player.Location == LocationEnum.CIMETARY_CESI; }