示例#1
0
文件: Tile.cs 项目: 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);
     }
 }
示例#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);
         }
     }
 }