Exemplo n.º 1
0
Arquivo: Tile.cs Projeto: euming/FotP
 //  *********************   TileAbility stuff
 public void FireTrigger(TileAbility.PlayerTurnStateTriggers trigState, PlayerBoard plr)
 {
     TileAbility[] abilityList = GetComponents <TileAbility>();
     foreach (TileAbility ability in abilityList)
     {
         ability.FireTrigger(trigState, plr);
     }
 }
Exemplo n.º 2
0
 //  ***************** Tile ability stuff
 public void FireTriggers(TileAbility.PlayerTurnStateTriggers trigState)
 {
     //  all of the tiles that the player owns are now triggered
     foreach (Tile tile in tileList)
     {
         tile.FireTrigger(trigState, this);
     }
     //  all of the dice which may have special abilities are triggered too
     foreach (PharoahDie die in this.diceList)
     {
         foreach (TileAbility ability in die.specialAbility)
         {
             ability.FireTrigger(trigState, this);
         }
     }
 }