public static void MoveTo(string noun) { Movement.PlayerMovement(noun); DisplayCurrentRoom.CurrentRoom(); if (Movement.moveHere == false) { Console.WriteLine("You can not go " + noun); } }
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; } } }
public static void Looking() { DisplayCurrentRoom.CurrentRoom(); }