Exemple #1
0
 /// <summary>
 /// Determines if Dracula is playing Control Storms at the start of a Hunter's movement
 /// </summary>
 /// <param name="game">The GameState</param>
 /// <param name="hunterMoved">The Hunter moving</param>
 /// <param name="logic">The artificial intelligence component</param>
 /// <returns>True if Dracula successfully played Control Storms</returns>
 private static bool DraculaIsPlayingControlStorms(GameState game, Hunter hunterMoved, DecisionMaker logic)
 {
     if (logic.ChooseToPlayControlStorms(game, hunterMoved))
     {
         Console.WriteLine("Dracula is playing Control Storms to control your movement");
         game.Dracula.DiscardEvent(Event.ControlStorms, game.EventDiscard);
         if (HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.ControlStorms, Event.ControlStorms, logic) >
             0)
         {
             Console.WriteLine("Control Storms cancelled");
             return false;
         }
         return true;
     }
     return false;
 }