|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zork2Class.Ordeal | +--zork2Class.QuestionOrdeal | +--zork2Class.WithoutQCM
classe : WithQCM.java
the ordeal which ask question without multiple choice
for player
Field Summary |
Fields inherited from class zork2Class.Ordeal |
description, name, recompense |
Constructor Summary | |
WithoutQCM()
the default constructor for WithoutQCM |
|
WithoutQCM(java.lang.String name,
java.lang.String description)
the constructor for WithoutQCM |
Method Summary | |
void |
appReward()
method :WithoutQCM appReward methode called to apply the reward to the player |
void |
doOrdeal(Game partie)
method :WithoutQCM doOrdeal method called to start the ordeal |
int |
getAnswerNumber()
Returns the answerNumber |
void |
ordealSuccess(boolean b)
method :WithoutQCM ordealSuccess method called when player finish an ordeal |
void |
setAnswerNumber(int answerNumber)
Sets the answerNumber |
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 WithoutQCM(java.lang.String name, java.lang.String description)
name
- the ordeal namepublic WithoutQCM()
Method Detail |
public int getAnswerNumber()
public void setAnswerNumber(int answerNumber)
answerNumber
- The answerNumber to setpublic void ordealSuccess(boolean b)
ordealSuccess
in class Ordeal
b
- true if ordeal is winned else falseOrdeal.ordealSuccess(boolean)
public void doOrdeal(Game partie)
doOrdeal
in class Ordeal
partie
- Ordeal.doOrdeal(zork2Class.Game)
public void appReward()
appReward
in class Ordeal
Ordeal.appReward()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |