|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zork2Class.Ordeal | +--zork2Class.FightOrdeal
the class FightOrdeal used for fight ordeal
creation :5 mai 03 at 17:52:40
Field Summary |
Fields inherited from class zork2Class.Ordeal |
description, name, recompense |
Constructor Summary | |
FightOrdeal()
the default constructor for FightOrdeal |
|
FightOrdeal(java.lang.String name,
java.lang.String description)
the constructor for FightOrdeal |
Method Summary | |
void |
appReward()
method :FightOrdeal appReward apply a reward to the player |
void |
doOrdeal(Game partie)
method :FightOrdeal doOrdeal Built the ihm and launch the ordeal |
int |
getCurrentMonsterEnergy()
method :int get Current Monster Energy |
int |
getMonsterEnergy()
Returns the monster Energy. |
int |
getMonsterFightCapacity()
Returns the monsterFightCapacity. |
java.lang.String |
getMonsterName()
Returns the monsterName. |
void |
ordealSuccess(boolean b)
method :FightOrdeal ordealSuccess method called when the ordeal finish |
void |
setCurrentMonsterEnergy(int i)
method :void set Current Monster Energy |
void |
setMonsterEnergy(int monsterEnergy)
Sets the monsterEnergy. |
void |
setMonsterFightsCapacity(int monsterFightsCapacity)
Sets the monsterFightCapacity. |
void |
setMonsterName(java.lang.String monsterName)
Sets the monsterName. |
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 FightOrdeal(java.lang.String name, java.lang.String description)
name
- the ordeal namepublic FightOrdeal()
Method Detail |
public int getMonsterEnergy()
public int getMonsterFightCapacity()
public java.lang.String getMonsterName()
public void setMonsterEnergy(int monsterEnergy)
monsterEnergy
- The monster Energy to setpublic void setMonsterFightsCapacity(int monsterFightsCapacity)
public void setMonsterName(java.lang.String monsterName)
monsterName
- The monster Name to setpublic int getCurrentMonsterEnergy()
public void setCurrentMonsterEnergy(int i)
i
- the current monster energy to setpublic void ordealSuccess(boolean b)
ordealSuccess
in class Ordeal
b
- the success to set : true if player win, false if he loseOrdeal.ordealSuccess(boolean)
public void appReward()
appReward
in class Ordeal
Ordeal.appReward()
public void doOrdeal(Game partie)
doOrdeal
in class Ordeal
partie
- the game in which this ordeal is launchOrdeal.doOrdeal(zork2Class.Game)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |