|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.dialogs.Answer
public class Answer
An answer class. Any answer has an "answer" string, plus a key code (shortcut for the action to be taken if the answer is chosen) and a gotoCode, that is the ID of the next question.
| Constructor Summary | |
|---|---|
Answer(java.lang.String answ,
java.lang.String key,
java.lang.String gtoCode)
Answer object constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getAnswer()
The answer text |
java.lang.String |
getGotoCode()
This is the code string representing the next unit to be shown if the answer is selected. |
java.lang.String |
getKey()
This is a code to communicate something to the program, telling it that the answer has been chosen |
void |
setAnswer(java.lang.String answer)
Set answer text |
void |
setGotoCode(java.lang.String gotoCode)
Set the goto code, that is the next dialog unit called when this answer is chosen |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Answer(java.lang.String answ,
java.lang.String key,
java.lang.String gtoCode)
answ - Answer textkey - Answer code (id)gtoCode - Dialog unit goto code (the code to go to, when the answer is chosen)DialogUnit| Method Detail |
|---|
public java.lang.String getKey()
public java.lang.String getAnswer()
public void setAnswer(java.lang.String answer)
answer - the answer textpublic java.lang.String getGotoCode()
public void setGotoCode(java.lang.String gotoCode)
gotoCode - The dialog unit goto code
|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||