changed some things
This commit is contained in:
@@ -25,6 +25,7 @@ import com.bayviewglen.zork.Items.*;
|
||||
class Room {
|
||||
private String roomName;
|
||||
private String description;
|
||||
private String newRoomDescription;
|
||||
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.
|
||||
@@ -263,5 +264,10 @@ class Room {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setNewRoomDescription(String newRoomDesc) {
|
||||
this.newRoomDescription = newRoomDesc;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user