zork2Class
Class FightOrdeal

java.lang.Object
  |
  +--zork2Class.Ordeal
        |
        +--zork2Class.FightOrdeal

public class FightOrdeal
extends Ordeal

the class FightOrdeal used for fight ordeal
creation :5 mai 03 at 17:52:40

Version:
1.0
Author:
Michel de VERDELHAN

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

FightOrdeal

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

Parameters:
name - the ordeal name

FightOrdeal

public FightOrdeal()
the default constructor for FightOrdeal

Method Detail

getMonsterEnergy

public int getMonsterEnergy()
Returns the monster Energy.

Returns:
int the monster energy

getMonsterFightCapacity

public int getMonsterFightCapacity()
Returns the monsterFightCapacity.

Returns:
int the monster fight capacity

getMonsterName

public java.lang.String getMonsterName()
Returns the monsterName.

Returns:
String the monster name

setMonsterEnergy

public void setMonsterEnergy(int monsterEnergy)
Sets the monsterEnergy.

Parameters:
monsterEnergy - The monster Energy to set

setMonsterFightsCapacity

public void setMonsterFightsCapacity(int monsterFightsCapacity)
Sets the monsterFightCapacity.


setMonsterName

public void setMonsterName(java.lang.String monsterName)
Sets the monsterName.

Parameters:
monsterName - The monster Name to set

getCurrentMonsterEnergy

public int getCurrentMonsterEnergy()
method :int get Current Monster Energy

Returns:
the current monster energy

setCurrentMonsterEnergy

public void setCurrentMonsterEnergy(int i)
method :void set Current Monster Energy

Parameters:
i - the current monster energy to set

ordealSuccess

public void ordealSuccess(boolean b)
method :FightOrdeal ordealSuccess
method called when the ordeal finish

Specified by:
ordealSuccess in class Ordeal
Parameters:
b - the success to set : true if player win, false if he lose
Since:
14 mai 03 at 22:47:37
See Also:
Ordeal.ordealSuccess(boolean)

appReward

public void appReward()
method :FightOrdeal appReward
apply a reward to the player

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

doOrdeal

public void doOrdeal(Game partie)
method :FightOrdeal doOrdeal
Built the ihm and launch the ordeal

Specified by:
doOrdeal in class Ordeal
Parameters:
partie - the game in which this ordeal is launch
Since:
14 mai 03 at 22:47:05
See Also:
Ordeal.doOrdeal(zork2Class.Game)