|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SuperPlayer
Method Summary | |
boolean |
ballInDefA(VisualInfo ballInfo,
int playerNumber)
Decides if the ball is in the area of the player |
boolean |
ballInOwnHalf(VisualInfo ballInfo)
Checks if the ball is in the own half of the field |
boolean |
checkGoodGoalPosition(java.awt.geom.Point2D.Double selfPosition)
Decides if player is in good position to kick on goal |
boolean |
checkIfInDefArea(java.awt.geom.Point2D.Double selfPosition,
int playerNumber)
Decides if the player is in his area |
double |
findSpecialKickDirection(VisualInfo playerInfo1,
double turnDir,
java.awt.geom.Point2D.Double selfPosition)
Calculates a special direction for turning or kicking |
java.awt.geom.Point2D.Double |
getDefAr(int playerNumber)
Returns the area border of the player |
double |
getDistance(java.awt.geom.Point2D.Double selfPosition,
double x,
double y)
Calculates the distance between player and a fix point |
void |
searchBall(double directionLastBallInfo,
double dirChange,
double headAngle)
Searches the ball |
void |
setPositionStart(int playerNumber)
Sets all the players to their start position |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean ballInOwnHalf(VisualInfo ballInfo)
ballInfo
- a VisualInfo
value which contains all the information about the ballpublic void setPositionStart(int playerNumber)
playerNumber
- a int
value which contains the number of the playerpublic java.awt.geom.Point2D.Double getDefAr(int playerNumber)
playerNumber
- a int
value which contains the number of the playerPoint2D.Double
contains the area border of the playerpublic boolean ballInDefA(VisualInfo ballInfo, int playerNumber)
ballInfo
- a VisualInfo
value which contains current ball informationplayerNumber
- a int
value which contains the number of the playerboolean
contains true if the ball is in the area of the playerpublic boolean checkIfInDefArea(java.awt.geom.Point2D.Double selfPosition, int playerNumber)
selfPosition
- a Point2D.Double
contains the current
absolute coordinates of the playerplayerNumber
- a int
value which contains the number of the playerboolean
contains true if the player is in his areapublic void searchBall(double directionLastBallInfo, double dirChange, double headAngle)
directionLastBallInfo
- a double
value which contains the last
known direction of the balldirChange
- a double
value which contains the direction change of the ballheadAngle
- double
value which contains the head angle of the playerpublic double findSpecialKickDirection(VisualInfo playerInfo1, double turnDir, java.awt.geom.Point2D.Double selfPosition)
playerInfo1
- a VisualInfo
contains infos about the closest player of the
opponent teamturnDir
- a double
value which contains normal turn or kick directionselfPosition
- a Point2D.Double
contains the current
absolute coordinates of the playerdouble
the (maybe) modified turn or kick directionpublic boolean checkGoodGoalPosition(java.awt.geom.Point2D.Double selfPosition)
selfPosition
- a Point2D.Double
contains the current
absolute coordinates of the playerboolean
value is true if player is in good position to kick on goalpublic double getDistance(java.awt.geom.Point2D.Double selfPosition, double x, double y)
selfPosition
- a Point2D.Double
contains the current
absolute coordinates of the playerx
- a double
value which contains the x-coordinate of the fix pointy
- a double
value which contains the y-coordinate of the fix pointdouble
value which contains the distance between player and the fix point
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |