|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Tactic | +--TacticReturnToHomePos
this is the tactic that is used to let a player return to its home position if he has not seen the ball before or if he simply has been to far away from the game's hot spot
Field Summary | |
(package private) boolean |
DEBUG
switch to enable class internal debugging information output |
Fields inherited from class Tactic |
cycles, player, succeeded |
Constructor Summary | |
TacticReturnToHomePos(Player player)
constructor |
Method Summary | |
private void |
act(Skill skill)
|
(package private) void |
debug(java.lang.String id,
java.lang.String msg)
|
void |
perform()
generates skills for this tactic and stores the genereated Skill objects on the SkillsQueue of the SkillManager of the player |
boolean |
succeeded()
checks wether tactic has already succeeded |
Methods inherited from class Tactic |
getCycles, setCycles |
Methods inherited from class java.lang.Object |
|
Field Detail |
final boolean DEBUG
Constructor Detail |
public TacticReturnToHomePos(Player player)
player
- reference to player objectMethod Detail |
public void perform()
Tactic
perform
in class Tactic
Tactic.perform()
public boolean succeeded()
succeeded
in class Tactic
private void act(Skill 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 |