|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TacticsManager
Field Summary | |
(package private) boolean |
DEBUG
class internal debug switch |
private Player |
player
pointer to Player |
private java.util.LinkedList |
TacticsQueue
holds tactics that were generated for the current strategic game situation |
Constructor Summary | |
TacticsManager(Player player)
constructor |
Method Summary | |
void |
addTacticToQueue(Tactic tactic)
adds a Tactic object to the TacticsQueue |
boolean |
canKickBall()
returns whether the player is able to kick the ball (ball is in kickable area then) |
boolean |
canKickBall(java.awt.geom.Point2D.Double ball)
return wether a player is able to kick the ball |
boolean |
canSeeBall()
returns whether the player can see the ball currently |
void |
clearTacticsQueue()
clear the TacticsQueue |
(package private) int |
countNearerCoPlayersToPoint(java.awt.geom.Point2D point2D)
Method get Number of nearer coplayers to ball. |
(package private) int |
countNearerOppPlayersToPoint(java.awt.geom.Point2D point2D)
Method get Number of nearer coplayers to ball. |
(package private) void |
debug(java.lang.String id,
java.lang.String msg)
|
Tactic |
getCurrentTactic()
returns the current tactic as a Tactic object from the TacticsQueue |
(package private) double |
getMoment(double speed,
double turnAngle)
Method getMoment returns the angle you have to turn if you want to turn turnAngle. |
(package private) java.awt.geom.Point2D.Double |
getNextPreGoal()
getNextPreoGoal |
(package private) int |
getNoOfOppPlayersInArea(java.awt.geom.Rectangle2D area)
Method get Number of oppplayers an Area |
(package private) java.awt.geom.Point2D.Double |
getPosOfNearestCoPlayer()
Method returns the position of the nearest CoPlayer |
boolean |
isCatchable(java.awt.geom.Point2D.Double Point)
returns wether ball is catchable for the goalie |
void |
removeSucessfullTacticsFromQueue()
removes all succeede skills from the skill queue |
void |
removeTacticFromQueue()
removes the first Tactic object from the TacticsQueue |
boolean |
TacticQueueIsEmpty()
returns the current tactic as a Tactic object from the TacticsQueue |
(package private) java.awt.geom.Point2D.Double |
toOppSide(java.awt.geom.Point2D.Double Point)
get opponents side coordinates from unsigned standard coordinate values |
Methods inherited from class java.lang.Object |
|
Field Detail |
final boolean DEBUG
private java.util.LinkedList TacticsQueue
private Player player
Constructor Detail |
public TacticsManager(Player player)
player
- pointer to player objectMethod Detail |
public void addTacticToQueue(Tactic tactic)
tactic
- to addpublic void removeTacticFromQueue()
public void removeSucessfullTacticsFromQueue()
public void clearTacticsQueue()
public Tactic getCurrentTactic()
public boolean TacticQueueIsEmpty()
public boolean canSeeBall()
public boolean canKickBall()
public boolean canKickBall(java.awt.geom.Point2D.Double ball)
ball
- public boolean isCatchable(java.awt.geom.Point2D.Double Point)
Point
- balljava.awt.geom.Point2D.Double toOppSide(java.awt.geom.Point2D.Double Point)
Point
- point to convertint countNearerCoPlayersToPoint(java.awt.geom.Point2D point2D)
point2D
- myDistanceint countNearerOppPlayersToPoint(java.awt.geom.Point2D point2D)
point2D
- myDistanceint getNoOfOppPlayersInArea(java.awt.geom.Rectangle2D area)
area
- java.awt.geom.Point2D.Double getPosOfNearestCoPlayer()
java.awt.geom.Point2D.Double getNextPreGoal()
double getMoment(double speed, double turnAngle)
speed
- turnAngle
- 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 |