Esempio n. 1
0
 /// <summary>
 /// Resolves the Consecrated Ground Event
 /// </summary>
 /// <param name="game">The GameState</param>
 /// <param name="hunterPlayingEvent">The Hunter playing the Event</param>
 private static void PlayConsecratedGround(GameState game, Hunter hunterPlayingEvent, DecisionMaker logic)
 {
     Console.WriteLine("Where would you like to place the Consecrated Ground marker?");
     var ground = Location.Nowhere;
     while (ground == Location.Nowhere || ground == Location.CastleDracula || ground == Location.Galatz ||
            ground == Location.Klausenburg ||
            (game.Map.TypeOfLocation(ground) != LocationType.SmallCity &&
             game.Map.TypeOfLocation(ground) != LocationType.LargeCity))
     {
         ground = Enumerations.GetLocationFromString(Console.ReadLine());
     }
     game.ConsecratedGroundLocation = ground;
     if (ground == game.Dracula.CurrentLocation)
     {
         var index = game.Dracula.RevealCardInTrailWithLocation(ground);
         logic.EliminateTrailsThatDoNotContainLocationAtPosition(game, ground, index);
         game.Dracula.RevealEncountersAtPositionInTrail(index);
     }
     else
     {
         logic.EliminateTrailsThatContainLocationAtPosition(game, ground, game.Dracula.CurrentLocationPosition);
     }
 }