예제 #1
0
파일: Dracula.cs 프로젝트: UncleGus/dracula
 public void DoActionPhase(GameState g, UserInterface ui)
 {
     Logger.WriteToDebugLog("PERFORMING ACTION PHASE");
     if (g.IndexOfHunterAtLocation(CurrentLocation) > -1 && LocationWhereHideWasUsed != CurrentLocation && CurrentLocation.Type != LocationType.Sea)
     {
         ui.TellUser("Dracula moved into " + CurrentLocation.Name + " and is entering combat with " + g.NameOfHunterAtIndex(g.IndexOfHunterAtLocation(CurrentLocation)));
         g.RevealLocationAtTrailIndex(0, ui);
         ui.drawGameState(g);
         g.ResolveCombat(g.IndexOfHunterAtLocation(CurrentLocation), 1, false, ui);
     }
     else
     {
         Logger.WriteToDebugLog("Placing an encounter");
         PlaceEncounterIfLegal(g, LocationTrail[0]);
     }
 }