made changing descriptions and added a spicy new riddle
This commit is contained in:
@@ -25,7 +25,7 @@ import com.bayviewglen.zork.Items.*;
|
||||
class Room {
|
||||
private String roomName;
|
||||
private String description;
|
||||
private String newRoomDescription;
|
||||
private String newDescription;
|
||||
private HashMap<String, Room> exits; // stores exits of this room.
|
||||
private ArrayList<Item> items;
|
||||
private Riddler riddler; //needs to altered outside of the class so that riddler can be set to null.
|
||||
@@ -254,6 +254,7 @@ class Room {
|
||||
|
||||
public void removeRiddler() {
|
||||
riddler = null;
|
||||
this.description = newDescription;
|
||||
|
||||
}
|
||||
|
||||
@@ -266,7 +267,7 @@ class Room {
|
||||
}
|
||||
|
||||
public void setNewRoomDescription(String newRoomDesc) {
|
||||
this.newRoomDescription = newRoomDesc;
|
||||
this.newDescription = newRoomDesc;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user