private void newDirection() { Console.WriteLine("Choose a direction"); string direction = Console.ReadLine(); if (DirectionsHelper.isEast(direction)) { new IF(); } else if (DirectionsHelper.isNorth(direction)) { new HG(); } else if (DirectionsHelper.isWest(direction)) { new GF(); } else if (DirectionsHelper.isSouth(direction)) { new HE(); } else { new Error().displayErrorMessage(); newDirection(); } }
private void NewDirection() { Console.WriteLine("Choose a direction."); string direction = Console.ReadLine(); if (DirectionsHelper.isEast(direction)) { new FE(); } else if (DirectionsHelper.isNorth(direction)) { new PitDeath(); } else if (DirectionsHelper.isWest(direction)) { new DE(); } else if (DirectionsHelper.isSouth(direction)) { Console.WriteLine("You bump into the cave wall"); NewDirection(); } else { new Error().displayErrorMessage(); NewDirection(); } }
internal void NewDirection() { Console.WriteLine("Choose a direction."); string direction = Console.ReadLine(); if (DirectionsHelper.isEast(direction)) { new CliffDeath().squareEntered(); } else if (DirectionsHelper.isNorth(direction)) { Console.WriteLine("IG"); new Incomplete().displayIncompleteMessageWithoutExit(); NewDirection(); } else if (DirectionsHelper.isWest(direction)) { new HF(); } else if (DirectionsHelper.isSouth(direction)) { Console.WriteLine("IE"); new Incomplete().displayIncompleteMessageWithoutExit(); NewDirection(); } else { new Error().displayErrorMessage(); } }
private void NewDirection() { Console.WriteLine("Choose a direction."); string direction = Console.ReadLine(); if (DirectionsHelper.isEast(direction)) { Console.WriteLine("IE"); new Incomplete().displayIncompleteMessageWithoutExit(); NewDirection(); } else if (DirectionsHelper.isNorth(direction)) { new HF(); } else if (DirectionsHelper.isSouth(direction)) { Console.WriteLine("HD"); new Incomplete().displayIncompleteMessageWithoutExit(); NewDirection(); } else if (DirectionsHelper.isWest(direction)) { new GE(); } else { new Error().displayErrorMessage(); } }
private void newDirection() { string direction = Console.ReadLine(); if (DirectionsHelper.isEast(direction)) { new HE(); } else if (DirectionsHelper.isNorth(direction)) { new GF(); } else if (DirectionsHelper.isWest(direction)) { new FE(); } else if (DirectionsHelper.isSouth(direction)) { Console.WriteLine("GD"); new Incomplete().displayIncompleteMessageWithoutExit(); newDirection(); } else { new Error().displayErrorMessage(); } newDirection(); }
private void NewDirection() { Console.WriteLine("Where do you want to go?"); string direction = Console.ReadLine().ToLower(); if (DirectionsHelper.isEast(direction)) { Console.WriteLine("IG"); new Incomplete().displayIncompleteMessageWithoutExit(); NewDirection(); } else if (DirectionsHelper.isNorth(direction)) { new RiverDeath(); } else if (DirectionsHelper.isWest(direction)) { new FF(); } else if (DirectionsHelper.isSouth(direction)) { new GE(); } else { new Error().displayErrorMessage(); } }