forked from jomokojomoko/ICS-PROJECT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Choice.java
29 lines (24 loc) · 867 Bytes
/
Choice.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
public class Choice { // class directly involved with storing information of 'choices' with individual phases of events
private int id;
private String choiceText; //the text that actually makes up the choice
private String changeToStory; //the text that is added to the phase text of the next phase if you make a certain decision
// Constructor
public Choice (int id, String text, String changeToStory){
id = this.id;
choiceText = text;
this.changeToStory = changeToStory;
}
// Accessors and mutators
public String getChangeToStory(){
return changeToStory;
}
public void setChangeToStory(String s){
changeToStory = s;
}
public String getChoiceText(){
return choiceText;
}
public String toString(){
return choiceText;
}
}