Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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();
            }
        }
Example #4
0
        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();
            }
        }
Example #5
0
        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();
        }
Example #6
0
        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();
            }
        }
Example #7
0
        private void NewDirection()
        {
            string direction = Console.ReadLine();

            if (DirectionsHelper.isEast(direction))
            {
                new GE();
            }
            else if (DirectionsHelper.isNorth(direction))
            {
                new FF();
            }
            else if (DirectionsHelper.isSouth(direction))
            {
                Console.WriteLine("FD");
                new Incomplete().displayIncompleteMessageWithoutExit();
                NewDirection();
            }
        }