Ejemplo n.º 1
0
 public Card(string name, int cost, List<CardAction> cardsActions, Player owner)
 {
     this.Name = name;
     this.Cost = cost;
     this.CardActions = cardsActions;
     this.Owner = owner;
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 public bool IsDead(Player player)
 {
     return player.Location == LocationEnum.CIMETARY_CESI;
 }