|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Strategy | +--StrategyOppGoal
strategy oppGoal
strategy class that holds formations and loads tactics acoording to strategic situation
Field Summary | |
private boolean |
DEBUG
class internal debug switch |
private int[] |
goalStats
array that stores goal statistics for formations |
private int |
lastGoalDiff
variable that holds the old goal difference |
private Player |
perform_debug_player
|
Fields inherited from class Strategy |
formation |
Constructor Summary | |
StrategyOppGoal()
Constructor for StrategyOppGoal. |
Method Summary | |
(package private) void |
debug(java.lang.String id,
java.lang.String msg)
|
void |
generateTactics(Player player)
loads the appropriote tactics onto the player depending on formation playmode (this) strategy |
Formation |
getFormation(Player player)
getFormation returns a reference to the formation that was set by perform() |
void |
perform(Player player)
perform the strategy (loads formations) |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Player perform_debug_player
private int[] goalStats
private int lastGoalDiff
private boolean DEBUG
Constructor Detail |
public StrategyOppGoal()
Method Detail |
public void perform(Player player)
perform
in class Strategy
player
- reference to playerpublic Formation getFormation(Player player)
getFormation
in class Strategy
player
- reference to playerpublic void generateTactics(Player player)
generateTactics
in class Strategy
player
- reference to playervoid 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 |