Пример #1
0
 /**
  * Called by TakeTurn is the unique space involves fighting an enemy.
  * Fate can be used.
  */
 private static void EncounterUniqueFightTile()
 {
     if (Moved && ActionNeeded)
     {
         FightDiff    = UniqueTiles.ChooseFightTile(_startTileName);
         ActionNeeded = false;
     }
     if (!Done && Moved)
     {
         UseFate(FightDiff);
     }
 }
Пример #2
0
 /**
  * The player turn's central method. Calls movement and then using the
  * player's current space as an identifier checks which method below
  * should be called next to get the correct method for that space,
  * and calls that.
  */
 public static void TakeTurn()
 {
     Move();
     if (Turns != BluePlayer.Turns)
     {
         return;
     }
     if (AdventureDeck.AllCardTiles.Contains(_startTileName))
     {
         DrawFromDeck();
     }
     else if (UniqueTiles.LifeLossDraw.Contains(_startTileName))
     {
         GameControl.ChangeLives(-1);
         DrawFromDeck();
     }
     else if (UniqueTiles.FightTiles.Contains(_startTileName))
     {
         EncounterUniqueFightTile();
     }
     else if (UniqueTiles.ArmouryTiles.Contains(_startTileName))
     {
         EncounterArmouryTile();
         ActionNeeded = false;
     }
     else if (UniqueTiles.HealTiles.Contains(_startTileName))
     {
         EncounterHealTile();
         ActionNeeded = false;
     }
     else if (UniqueTiles.Tiles.Contains(_startTileName))
     {
         UniqueTiles.ChooseTile(_startTileName);
         ActionNeeded = false;
         GameControl.AlternateTurnTracker();
     }
 }