Beispiel #1
0
        public void Go(string direction)
        {
            Console.Clear();
            Room nextRoom = CurrentRoom.Advance(direction);

            if (!CurrentRoom.Exits.ContainsKey(direction))
            {
                Console.WriteLine("Thats not a vaild direction");
                Console.ReadLine();
                return;
            }
            else if (nextRoom.Name == "Dungeon")
            {
                EnterDungeon();
            }
            else if (nextRoom.Name == "Foyer")
            {
                EnterFoyer();
            }
            CurrentRoom = nextRoom;
        }