forked from SkylerLutz/adventure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoomObscured.java
32 lines (31 loc) · 859 Bytes
/
RoomObscured.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public class RoomObscured extends Room {
public RoomObscured(String description, String shortDescription, Item obscuringItem) {
super(description, shortDescription);
this.obscuringItem = obscuringItem;
this.isObscured = true;
this.obscureMessage = null;
this.unobscureMessage = null;
}
public boolean isObscured() {
return this.isObscured;
}
public void setObscured(boolean obscured) {
this.isObscured = obscured;
}
public void setUnobscureMessage(String s) {
this.unobscureMessage = s;
}
public String unobscureMessage() {
return this.unobscureMessage;
}
public void setObscureMessage(String s) {
this.obscureMessage = s;
}
public String obscureMessage() {
return this.obscureMessage;
}
protected Item obscuringItem;
protected boolean isObscured;
protected String obscureMessage;
protected String unobscureMessage;
}