changed some things

This commit is contained in:
Luca Carnegie
2019-06-01 00:34:36 -04:00
parent efdace7467
commit e88785ba82
4 changed files with 56 additions and 9 deletions

View File

@@ -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;
}
}