-
Notifications
You must be signed in to change notification settings - Fork 11
/
AbstractChoice.java
61 lines (45 loc) · 1.11 KB
/
AbstractChoice.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Write a description of class Choice here.
*
* @author (your name)
* @version (a version number or a date)
*/
public abstract class AbstractChoice implements Choice {
private int id;
private String message;
private boolean wasChosen;
private Dialogue dialogue;
public AbstractChoice() {
}
public AbstractChoice(String message) {
this.message = message;
}
public AbstractChoice(int id, String message) {
this.id = id;
this.message = message;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public boolean wasChosen() {
return wasChosen;
}
public void markAsChosen() {
this.wasChosen = true;
}
public void setDialogue(Dialogue dialogue) {
this.dialogue = dialogue;
}
public Dialogue getDialogue() {
return this.dialogue;
}
}