|
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.game.MagesGuild
public class MagesGuild
This class manages the Mages Guild dialogs
| Constructor Summary | |
|---|---|
MagesGuild(Core system)
Constructor |
|
| Method Summary | |
|---|---|
java.util.AbstractList<Answer> |
getCurrentAnswers()
Get a list of the answers tied to the current question |
java.lang.String |
getCurrentQuestion()
Get the current question |
java.lang.String |
getCurrentUnit()
Get the current dialog unit |
void |
initializeGuild()
Initialized dialogs |
java.lang.String |
processAnswer(Answer theAnswer,
IDialogLogic logic)
Process the answer given by the character to the current question. |
java.lang.String |
processAnswerWithLogic(IDialogLogic logic)
Intelligence behind dialogs code. |
void |
setCurrentUnit(java.lang.String currentUnit)
Set the current dialog unit |
java.lang.String |
setNextUnit(Answer selectedAnswer)
If the answer has been chosen, a next unit will be set as current, and a key code will be returned to the caller. |
void |
synchronizeUnit()
Synchronize the dialog with the last dialog phase taken by the character |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MagesGuild(Core system)
system - Handle to a Core objectCore| Method Detail |
|---|
public void initializeGuild()
public void synchronizeUnit()
public java.lang.String getCurrentUnit()
public void setCurrentUnit(java.lang.String currentUnit)
currentUnit - the current dialog unitpublic java.lang.String getCurrentQuestion()
public java.util.AbstractList<Answer> getCurrentAnswers()
public java.lang.String setNextUnit(Answer selectedAnswer)
selectedAnswer -
public java.lang.String processAnswer(Answer theAnswer,
IDialogLogic logic)
theAnswer - Answer answeredlogic - The logic that governs the choice of the next question
public java.lang.String processAnswerWithLogic(IDialogLogic logic)
unitCode -
|
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 | |||||||||