|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Skill | +--SkillRecover
This class encapsulates the intelligence for a recorvery skill this skill is loaded if the player has not very much stamina left
Field Summary | |
private boolean |
DEBUG
class internal debug switch |
private double |
destStamina
stamina value that player should have after recovering |
Fields inherited from class Skill |
clearLock, cycles, player |
Constructor Summary | |
SkillRecover(Player player,
double percent)
Initialise the Skill with a percentage in double between [0,1] that says, how much of your full stamina should be reached gets computed right away |
Method Summary | |
(package private) void |
debug(java.lang.String id,
java.lang.String msg)
|
void |
perform()
performs the Skill |
boolean |
succeeded()
checks whether skill has succeeded if cycles are out, we return true otherwise this cycle has to run once more |
Methods inherited from class Skill |
isLocked, setClearLock |
Methods inherited from class java.lang.Object |
|
Field Detail |
private final boolean DEBUG
private double destStamina
Constructor Detail |
public SkillRecover(Player player, double percent)
player
- reference to playerpercent
- how much of your full stamina should be reachedMethod Detail |
public void perform()
perform
in class Skill
public boolean succeeded()
succeeded
in class Skill
void debug(java.lang.String id, java.lang.String msg)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |