This commit is contained in:
jslightham
2019-05-30 23:46:15 -04:00
3 changed files with 18 additions and 12 deletions

View File

@@ -2,8 +2,8 @@ Room name: Circle Room
Room Description: You are in a circular room. The windows to the east are covered with boards that<br>let in just enough light to see. You spot a man in a tailored suit moving some crates around. Room Description: You are in a circular room. The windows to the east are covered with boards that<br>let in just enough light to see. You spot a man in a tailored suit moving some crates around.
Locked: false Locked: false
Boarded: false Boarded: false
Items:Lockpick,Milk Items: Lightbulb,Candlestick
Riddler: "Hello there. My name is Kevin and I am Sir Pellatt's butler. I understand that my master<comma><br>Sir Pellatt has wrongfully imprisoned you. If you answer my riddle<comma> I can give you something to<br>help you with your escape - nothing comes for free you know!", "What goes moo?", "Cows", Shavingcream Riddler: "Hello there. My name is Kevin and I am Sir Pellatt's butler. I understand that my master<comma><br>Sir Pellatt has wrongfully imprisoned you. If you answer my riddle<comma> I can give you something to<br>help you with your escape - nothing comes for free you know!", "What goes moo?", "Cows", Lockpick
Exit Rooms: W-Apple Hallway Exit Rooms: W-Apple Hallway
Room name: Apple Hallway Room name: Apple Hallway
@@ -57,8 +57,8 @@ Exit Rooms: S-Lady Pellatt's Bedroom
Room name: Pipe Room Room name: Pipe Room
Room Description: Welcome to the Pipe Room. A misty smell fills the room. Strange items<br>lay in a pile near the north wall. I suggest you take a look... Room Description: Welcome to the Pipe Room. A misty smell fills the room. Strange items<br>lay in a pile near the north wall. I suggest you take a look...
Locked: false Locked: false
Boarded: false Boarded: false
Items:Clock,Lightbulb,Keyboard Items:Clock,Lightbulb,Keyboard
Riddler: Riddler:
Exit Rooms: W-Porcupine Stairs (2nd Floor), S-Landing, N-East Sitting Room, E-Round Room Exit Rooms: W-Porcupine Stairs (2nd Floor), S-Landing, N-East Sitting Room, E-Round Room
@@ -73,8 +73,8 @@ Exit Rooms: W-Pipe Room, N-Elm Bedroom, S-Oak Bedroom
Room name: Elm Bedroom Room name: Elm Bedroom
Room Description: You are in the Elm Bedroom. The walls are all wooden and a few windows face north.<br>A bed sits in the middle of the room. A few pillows are on the ground. It looks like someone was in here... Room Description: You are in the Elm Bedroom. The walls are all wooden and a few windows face north.<br>A bed sits in the middle of the room. A few pillows are on the ground. It looks like someone was in here...
Locked: false Locked: false
Boarded: false Boarded: false
Items:Water bottle,Pen,Book Items:Water bottle,Pen,Book
Riddler: Riddler:
Exit Rooms: S-Round Room, W-East Sitting Room Exit Rooms: S-Round Room, W-East Sitting Room
@@ -169,10 +169,10 @@ Exit Rooms: S-Apsen Bedroom, E-Willow Bedroom
Room name: Guest Bedroom Room name: Guest Bedroom
Room Description: Welcome to the guest bedroom, where guests like yourself stay for the night. There is another tailored<br>man in the corner. He seems to have something he would like to tell you. Room Description: Welcome to the guest bedroom, where guests like yourself stay for the night. There is another tailored<br>man in the corner. He seems to have something he would like to tell you.
Locked: false Locked: false
Boarded: false Boarded: false
Items: Items:
Riddler: "Hello there<comma> Kevin again with another riddle for you to solve. What are the next 3 letters in this sequence: o<comma>t<comma>t<comma>f<comma>f<comma>s<comma>s?", "e<comma>n<comma>t" Riddler: "Hello there<comma> Kevin again with another riddle for you to solve. What are the next 3 letters in this sequence: o<comma>t<comma>t<comma>f<comma>f<comma>s<comma>s?", "e<comma>n<comma>t"
Exit Rooms: E-Linen Closet, S-Another Sitting Area, N-Lady Pellatt's Bedroom Exit Rooms: E-Linen Closet, S-Another Sitting Area, N-Lady Pellatt's Bedroom
Room name: Silver Stairs (1st Floor) Room name: Silver Stairs (1st Floor)
Room Description: Welcome to the First Floor. You made it this far, don't give up now. Quite a few doors are open down here.<br>Someone even left a few lights on although it could just be the servants. Room Description: Welcome to the First Floor. You made it this far, don't give up now. Quite a few doors are open down here.<br>Someone even left a few lights on although it could just be the servants.
@@ -225,9 +225,9 @@ Exit Rooms: S-Serving and Breakfast Room, E-Library, W-Conservatory
Room name: Conservatory Room name: Conservatory
Room Description: You are now in the Conservatory. The walls and ceilings are all glass, which gives you a gorgeous view of the outdoors.<br>A few potted plants lay directly in the sunlight. There is a tailored woman standing in the corner of the room. Room Description: You are now in the Conservatory. The walls and ceilings are all glass, which gives you a gorgeous view of the outdoors.<br>A few potted plants lay directly in the sunlight. There is a tailored woman standing in the corner of the room.
Locked: false Locked: false
Boarded: false Boarded: false
Items: Items:
Riddler: "Hey<comma> I'm Karen. Kevin is on his break but he told me to give you this riddle: <br>Marking mortal privation<comma> when firmly in place. An enduring summation<comma> inscribed in my face. What am I?", "tombstone" Riddler: "Hey<comma> I'm Karen. Kevin is on his break but he told me to give you this riddle: <br>Marking mortal privation<comma> when firmly in place. An enduring summation<comma> inscribed in my face. What am I?", "tombstone"
Exit Rooms: E-Dining Room Exit Rooms: E-Dining Room
Room name: Library Room name: Library

View File

@@ -385,7 +385,7 @@ class Game {
if(player.addToInventory(prize)) { if(player.addToInventory(prize)) {
player.addToInventory(prize); player.addToInventory(prize);
System.out.println("A " + prizeName + " has been added to your inventory."); System.out.println("A " + prizeName + " has been added to your inventory.");
currentRoom.riddler = null; currentRoom.removeRiddler();
System.out.println("I've got to go find Mr. Pellatt now. Good luck with your escape!"); System.out.println("I've got to go find Mr. Pellatt now. Good luck with your escape!");
}else { }else {
System.out.println("Sorry, you can't carry any more "); System.out.println("Sorry, you can't carry any more ");
@@ -543,6 +543,7 @@ class Game {
return false; return false;
} }
// implementations of user commands: // implementations of user commands:
/** /**
* Print out some help information. Here we print some stupid, cryptic * Print out some help information. Here we print some stupid, cryptic

View File

@@ -27,7 +27,7 @@ class Room {
private String description; private String description;
private HashMap<String, Room> exits; // stores exits of this room. private HashMap<String, Room> exits; // stores exits of this room.
private ArrayList<Item> items; private ArrayList<Item> items;
Riddler riddler; //needs to altered outside of the class so that riddler can be set to null. private Riddler riddler; //needs to altered outside of the class so that riddler can be set to null.
private boolean locked; // Otherwise you can repeatedly solve the riddle and get unlimited items private boolean locked; // Otherwise you can repeatedly solve the riddle and get unlimited items
private boolean boarded; private boolean boarded;
@@ -239,5 +239,10 @@ class Room {
public Riddler getRiddler() { public Riddler getRiddler() {
return riddler; return riddler;
} }
public void removeRiddler() {
riddler = null;
}
} }