예제 #1
0
        //NOTE Make yo rooms here...
        public void Setup()
        {
            TrapRoom start = new TrapRoom("Start room", "You see a window about a perfect ladders height away.");
            IRoom    two   = new Room("This is the 2nd room", "Another room description");
            IRoom    three = new Room("This room", "Another 3rd room description");

            start.AddRoomConnection(two, "east");
            two.AddRoomConnection(start, "west");
            start.AddRoomConnection(three, "north");
            three.AddRoomConnection(start, "south");

            Item ladder = new Item("Ladder", "A real nice ladder");

            start.Items.Add(ladder);

            start.AddUnlockable(ladder, "You can now climb the ladder out");

            CurrentRoom = start;
        }
예제 #2
0
        //NOTE Make yo rooms here...
        public void Setup()
        {
            IRoom start = new Room("An Unknown Room", "You come to your senses in a pile of your own vomit.");
            IRoom two   = new Room("Outside", "To your north you hear a loud ruckus but to your west you see somebody disappear down a sewage lid.");
            IRoom three = new TrapRoom("Pub", "The bar is very crowded but there is an open spot off to the side");
            IRoom four  = new TrapRoom("Hidden Tunnel", "There is ancient markings on the walls of this poorly lit corridor the only way to advance is north.");
            IRoom five  = new Room("Courtyard", "You see large arch doors to your north but a smaller normal door to your west.");
            IRoom six   = new TrapRoom("Jailor", "You walk into the room to see a group of guards sitting around a table looking up at you.");
            IRoom seven = new SafeTrapRoom("Dark Hallway", $@"
    You enter the arch doors to a long dark hallway. 
        Do you dare go north?");
            IRoom eight = new ThroneRoom("Throne Room", "There is the Iron Throne with nobody to claim it... Do you dare sit in the throne");
            IRoom nine  = new TrapRoom("Kings Room", "The King is sleeping with his Crown tucked under his arms.... ");

            start.AddRoomConnection(two, "west");
            two.AddRoomConnection(start, "east");

            two.AddRoomConnection(three, "north");
            three.AddRoomConnection(two, "south");

            two.AddRoomConnection(four, "west");
            four.AddRoomConnection(two, "east");

            four.AddRoomConnection(five, "north");
            five.AddRoomConnection(four, "south");

            five.AddRoomConnection(six, "west");
            six.AddRoomConnection(five, "east");

            five.AddRoomConnection(seven, "north");
            seven.AddRoomConnection(five, "south");

            seven.AddRoomConnection(eight, "north");
            eight.AddRoomConnection(seven, "south");

            nine.AddRoomConnection(seven, "east");
            seven.AddRoomConnection(nine, "west");

            eight.AddRoomConnection(start, "secret");



            Item sword = new Item("Sword", "Big long sword");
            Item drink = new Item("Ale", "Biggest container of beer you've ever seen.");
            Item torch = new Item("Torch", "Used to light even the darkest of places.");
            Item crown = new Item("Crown", "Fit for a king");
            Item test  = new Item("Key", "This must open something important");

            start.Items.Add(sword);
            three.Items.Add(drink);
            four.Items.Add(torch);
            nine.Items.Add(crown);
            seven.Items.Add(test);


            (seven as SafeTrapRoom).addUnlockable(test);
            (four as TrapRoom).addUnlockable(torch);
            (six as TrapRoom).addUnlockable(sword);
            (three as TrapRoom).addUnlockable(drink);
            (eight as ThroneRoom).addUnlockable(crown);



            CurrentRoom = start;
        }