zork2Class
Class WithQCM

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

public class WithQCM
extends QuestionOrdeal

classe : WithoutQCM.java
the ordeal which ask question with multiple choice

Author:
Michel de VERDELHAN, Fabien BOYERE

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

WithQCM

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

Parameters:
name - the ordeal's name

WithQCM

public WithQCM()
the default constructor for WithQCM

Method Detail

getAnswerChoice

public java.util.Vector getAnswerChoice()
Returns the answerChoice.

Returns:
Vector

setAnswerChoice

public void setAnswerChoice(java.util.Vector answerChoice)
Sets the answerChoice.

Parameters:
answerChoice - The answerChoice to set

ordealSuccess

public void ordealSuccess(boolean b)
method :WithQCM ordealSuccess
methode called when the player finish th ordeal

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

doOrdeal

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

Specified by:
doOrdeal in class Ordeal
Parameters:
partie - the game on which the ordeal is launched
Since:
14 mai 03 at 22:50:16
See Also:
Ordeal.doOrdeal(zork2Class.Game)

appReward

public void appReward()
method :WithQCM appReward
the methode called to apply an ordeal

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