|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Skill
This class encapsulates the intelligence for one skill
(abstract skill class)
Field Summary | |
private boolean |
clearLock
can be set, when this skill whould be the very next to be executed and should not be removed , it should be used very carefully as it prevents the skillqueue to be cleared |
protected int |
cycles
number of cycles a Skill object is to be kept in the SkillsQueue standard value = 1 if value == -1 then the Skill object will stay in the TacticsQueue until the skill aim has been reached (e.g. |
protected Player |
player
pointer to player object |
Constructor Summary | |
Skill()
standard constructor |
|
Skill(Player player)
constructor |
Method Summary | |
boolean |
isLocked()
Method locked. |
abstract void |
perform()
executes skill |
void |
setClearLock(boolean clearLock)
Sets the clearLock. |
abstract boolean |
succeeded()
return wether this Skills succeeded (e.g. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int cycles
private boolean clearLock
protected Player player
Constructor Detail |
public Skill()
public Skill(Player player)
player
- reference to playerMethod Detail |
public abstract void perform()
public abstract boolean succeeded()
public boolean isLocked()
public void setClearLock(boolean clearLock)
clearLock
- The clearLock to set
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |