Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void createRooms()
- {
- Room outside, entrance, firstStairs, kitchen, livingRoom, bathroom, bedroom1, bedroom2, bedroom3;
- // Haunted House's Rooms
- outside = new Room("You are standing outside an old manor house with a rusty gate, paint peeling off the wood and with bats fly from the chimney");
- entrance = new Room("You walk through the rusty door into the manor house, there are only candles for light");
- firstStairs = new Room("You go up the stairs and end up on the landing - there are floor boards missing");
- kitchen = new Room("You go into the kitchen, all the appliances are missing");
- livingRoom = new Room("You enter the living room - there is a small black and white tv");
- bathroom = new Room("You enter the smelly bathroom");
- bedroom1 = new Room("You enter the first bedroom - there is a locked cupboard, there is nothing else in the room");
- bedroom2 = new Room("In the second bedroom there is a large bed full of spiders, you hear a noise knocking on the smashed window");
- bedroom3 = new Room("As you enter the third bedroom the door slams shut. There is blood on the walls and a huge hole on the floor.");
- // initialise room exits
- outside.setExit("north", entrance);
- entrance.setExit("south", outside);
- entrance.setExit("north", firstStairs);
- entrance.setExit("west", kitchen);
- entrance.setExit("east", livingRoom);
- livingRoom.setExit("west", entrance);
- kitchen.setExit("east", entrance);
- firstStairs.setExit("north", bathroom);
- firstStairs.setExit("south", bedroom1);
- firstStairs.setExit("east", bedroom2);
- firstStairs.setExit("west", bedroom3);
- bathroom.setExit("south", firstStairs);
- bedroom1.setExit("north", firstStairs);
- bedroom2.setExit("west", firstStairs);
- bedroom3.setExit("east", firstStairs);
- currentRoom = outside; // start game outside
- outside.addItem("Gun", new item("Gun", "Shooting Zombies in their brains, it's the only way to kill them!", 20));
- entrance.addItem("a crate", new item("a crate", "Nothing inside, but might be useful?", 70));
- firstStairs.addItem("knife", new item("knife", "You could open things with this. Or stab zombies!", 20));
- kitchen.addItem("sink", new item("sink", "You could throw it.", 50));
- livingRoom.addItem("grenade", new item("grenade", "Throwing at zombies, kaaaboooom!", 25));
- bathroom.addItem("blood drenched coat", new item("blood drenched coat", "It's a disguise!! Become a zombie and they might not eat your brains with beans...", 3));
- bedroom1.addItem("grenade", new item("grenade", "Throwing at zombies, kaaaboooom!", 25));
- bedroom2.addItem("sledge hammer", new item("sledge hammer", "If swung properly, can knock the brain right out if the zombie keeping their skull in tact!!", 25));
- bedroom3.addItem("magic wand", new item("magic wand", "Is it voodoo? No. It's a toy... or is it?!", 1));
- }
Add Comment
Please, Sign In to add comment