Exemple #1
0
 void CheckRoom() //Checks to see if the room the watcher is in has the player
 {
     if (currentRoom == playerRoom)
     {
         playerInRoom = true;
     }
     else
     {
         if (currentRoom.getFloorNum() != playerRoom.getFloorNum())
         {
             ChangeFloor(playerRoom.getFloorNum());
         }
         else
         {
             playerInRoom = false;
         }
     }
 }