zork2Class
Class WithoutQCM

java.lang.Object
  |
  +--zork2Class.Ordeal
        |
        +--zork2Class.QuestionOrdeal
              |
              +--zork2Class.WithoutQCM

public class WithoutQCM
extends QuestionOrdeal

classe : WithQCM.java
the ordeal which ask question without multiple choice for player

Author:
Michel de VERDELHAN, Fabien BOYERE

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

WithoutQCM

public WithoutQCM(java.lang.String name,
                  java.lang.String description)
the constructor for WithoutQCM

Parameters:
name - the ordeal name

WithoutQCM

public WithoutQCM()
the default constructor for WithoutQCM

Method Detail

getAnswerNumber

public int getAnswerNumber()
Returns the answerNumber

Returns:
int

setAnswerNumber

public void setAnswerNumber(int answerNumber)
Sets the answerNumber

Parameters:
answerNumber - The answerNumber to set

ordealSuccess

public void ordealSuccess(boolean b)
method :WithoutQCM ordealSuccess
method called when player finish an ordeal

Specified by:
ordealSuccess in class Ordeal
Parameters:
b - true if ordeal is winned else false
Since:
14 mai 03 at 22:50:06
See Also:
Ordeal.ordealSuccess(boolean)

doOrdeal

public void doOrdeal(Game partie)
method :WithoutQCM doOrdeal
method called to start the ordeal

Specified by:
doOrdeal in class Ordeal
Parameters:
partie -
Since:
14 mai 03 at 22:49:55
See Also:
Ordeal.doOrdeal(zork2Class.Game)

appReward

public void appReward()
method :WithoutQCM appReward
methode called to apply the reward to the player

Specified by:
appReward in class Ordeal
Since:
14 mai 03 at 22:50:09
See Also:
Ordeal.appReward()