|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--zork2Class.Ordeal
|
+--zork2Class.QuestionOrdeal
|
+--zork2Class.WithQCM
classe : WithoutQCM.java
the ordeal which ask question with multiple choice
| Field Summary |
| Fields inherited from class zork2Class.Ordeal |
description, name, recompense |
| Constructor Summary | |
WithQCM()
the default constructor for WithQCM |
|
WithQCM(java.lang.String name,
java.lang.String description)
the constructor for WithQCM |
|
| Method Summary | |
void |
appReward()
method :WithQCM appReward the methode called to apply an ordeal |
void |
doOrdeal(Game partie)
method :WithQCM doOrdeal methode called to start the ordeal |
java.util.Vector |
getAnswerChoice()
Returns the answerChoice. |
void |
ordealSuccess(boolean b)
method :WithQCM ordealSuccess methode called when the player finish th ordeal |
void |
setAnswerChoice(java.util.Vector answerChoice)
Sets the answerChoice. |
| Methods inherited from class zork2Class.QuestionOrdeal |
getAnswer, getQuestion, setAnswer, setQuestion |
| Methods inherited from class zork2Class.Ordeal |
getDescription, getName, getRecompense, setDescription, setName, setRecompense |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WithQCM(java.lang.String name,
java.lang.String description)
name - the ordeal's namepublic WithQCM()
| Method Detail |
public java.util.Vector getAnswerChoice()
public void setAnswerChoice(java.util.Vector answerChoice)
answerChoice - The answerChoice to setpublic void ordealSuccess(boolean b)
ordealSuccess in class Ordealb - true if player win the ordeal else falseOrdeal.ordealSuccess(boolean)public void doOrdeal(Game partie)
doOrdeal in class Ordealpartie - the game on which the ordeal is launchedOrdeal.doOrdeal(zork2Class.Game)public void appReward()
appReward in class OrdealOrdeal.appReward()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||