コード例 #1
0
ファイル: Program.cs プロジェクト: UncleGus/dracula
 /// <summary>
 /// Determines if Dracula is playing Wild Horses at the start of a combat
 /// </summary>
 /// <param name="game">The GameState</param>
 /// <param name="logic">The artificial intelligence component</param>
 /// <returns>True if Dracula successfully plays Wild Horses</returns>
 private static bool DraculaIsPlayingWildHorses(GameState game, DecisionMaker logic)
 {
     if (logic.ChooseToPlayWildHorses(game))
     {
         Console.WriteLine("Dracula is playing Wild Horses to control your movement");
         game.Dracula.DiscardEvent(Event.WildHorses, game.EventDiscard);
         if (HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.WildHorses, Event.WildHorses, logic) > 0)
         {
             Console.WriteLine("Wild Horses cancelled");
             return false;
         }
         return true;
     }
     return false;
 }