コード例 #1
0
ファイル: GameState.cs プロジェクト: UncleGus/dracula
 internal void ApplyBiteToOneOfMultipleHunters(int hunterIndex, UserInterface ui)
 {
     int hunterIndexBitten;
     do
     {
         hunterIndexBitten = ui.GetIndexOfHunterBitten();
         if (Hunters[hunterIndexBitten].CurrentLocation != Hunters[hunterIndex].CurrentLocation)
         {
             ui.TellUser(Hunters[hunterIndexBitten].Name + " is not at the same location as " + Hunters[hunterIndex].Name);
         }
     } while (Hunters[hunterIndexBitten].CurrentLocation != Hunters[hunterIndex].CurrentLocation);
     ApplyBiteToHunter(hunterIndexBitten, ui);
 }