|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soccerclient.datamanager.OtherPlayer
Überschrift: OtherPlayer
Beschreibung: This class is for safing information about other player
Copyright: Copyright (c) 2002
Organisation: pm39
Constructor Summary | |
OtherPlayer(Coordinate position,
double distChange,
double dirChange,
double bodyDir,
double headDir,
int time)
Creates a new OtherPlayer instance |
Method Summary | |
double |
getBodyDir()
Returns relative direction of the other player to this player |
double |
getDirChange()
Returns change of the relative direction to the player |
double |
getDistChange()
Returns change of the distance to this player |
double |
getHeadDir()
Returns relative direction of the head of other player to this player |
int |
getInfoTime()
Returns the time when the information has been recieved |
Coordinate |
getPosition()
Returns the absolute position |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public OtherPlayer(Coordinate position, double distChange, double dirChange, double bodyDir, double headDir, int time)
OtherPlayer
instanceposition
- a Coordinate
value specifying the absolute positiondistChange
- a double
value specifying change of the distance to the other playerdirChange
- a double
value specifying change of the relative direction to the other playerbodyDir
- a double
value specifying relative direction of the other player to this
playerheadDir
- a double
value specifying relative direction of the head of the other player to the head of this
playertime
- a int
value specifying the time when the information has been recievedMethod Detail |
public Coordinate getPosition()
Coordinate
containing absolute positionpublic double getDistChange()
this
playerdouble
containing change of the distance to this
playerpublic double getDirChange()
double
containing change of relative direction to the playerpublic double getBodyDir()
this
playerdouble
containing relative direction of the other player to this
playerpublic double getHeadDir()
this
playerdouble
containing relative direction of the head of the other player to the head of this
playerpublic int getInfoTime()
int
containing the time when the information has been recieved
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |