Esempio n. 1
0
 public static void MoveTo(string noun)
 {
     Movement.PlayerMovement(noun);
     DisplayCurrentRoom.CurrentRoom();
     if (Movement.moveHere == false)
     {
         Console.WriteLine("You can not go " + noun);
     }
 }
Esempio n. 2
0
 public static void PlayerMovement(string noun)
 {
     if (noun == "north")
     {
         if (Player.CurrentRoom.ExitNorth != -1)
         {
             MovePlayer(IDA.Room[Player.CurrentRoom.ExitNorth]);
             DisplayCurrentRoom.CurrentRoom();
             Console.ReadLine();
         }
         else
         {
             moveHere = false;
         }
     }
     if (noun == "east")
     {
         if (Player.CurrentRoom.ExitEast != -1)
         {
             MovePlayer(IDA.Room[Player.CurrentRoom.ExitEast]);
             DisplayCurrentRoom.CurrentRoom();
             Console.ReadLine();
         }
         else
         {
             moveHere = false;
         }
     }
     if (noun == "south")
     {
         if (Player.CurrentRoom.ExitSouth != -1)
         {
             MovePlayer(IDA.Room[Player.CurrentRoom.ExitSouth]);
             DisplayCurrentRoom.CurrentRoom();
             Console.ReadLine();
         }
         else
         {
             moveHere = false;
         }
     }
     if (noun == "west")
     {
         if (Player.CurrentRoom.ExitWest != -1)
         {
             MovePlayer(IDA.Room[Player.CurrentRoom.ExitWest]);
             DisplayCurrentRoom.CurrentRoom();
             Console.ReadLine();
         }
         else
         {
             moveHere = false;
         }
     }
 }
Esempio n. 3
0
 public static void Looking()
 {
     DisplayCurrentRoom.CurrentRoom();
 }