|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Tactic
this is the abstract tactic class
Field Summary | |
private int |
cycles
number of cycles a Tactic object is to be kept in the TacticsQueue standard value = 1 |
Player |
player
pointer to player object |
protected boolean |
succeeded
flag whether tactic has succeeded or not |
Constructor Summary | |
Tactic()
standard constructor |
Method Summary | |
int |
getCycles()
returns cycles attribute |
abstract void |
perform()
generates skills for this tactic and stores the genereated Skill objects on the SkillsQueue of the SkillManager of the player |
void |
setCycles(int cycles)
sets cycles attribute |
abstract boolean |
succeeded()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private int cycles
protected boolean succeeded
public Player player
Constructor Detail |
public Tactic()
Method Detail |
public abstract void perform()
public int getCycles()
public void setCycles(int cycles)
cycles
- value that is to setpublic abstract boolean succeeded()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |