soccerclient.datamanager
Class OtherPlayer

java.lang.Object
  |
  +--soccerclient.datamanager.OtherPlayer
All Implemented Interfaces:
java.io.Serializable

public class OtherPlayer
extends java.lang.Object
implements java.io.Serializable

Überschrift: OtherPlayer

Beschreibung: This class is for safing information about other player

Copyright: Copyright (c) 2002

Organisation: pm39

Author:
J.F.G
See Also:
Serialized Form

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtherPlayer

public OtherPlayer(Coordinate position,
                   double distChange,
                   double dirChange,
                   double bodyDir,
                   double headDir,
                   int time)
Creates a new OtherPlayer instance
Parameters:
position - a Coordinate value specifying the absolute position
distChange - a double value specifying change of the distance to the other player
dirChange - a double value specifying change of the relative direction to the other player
bodyDir - a double value specifying relative direction of the other player to this player
headDir - a double value specifying relative direction of the head of the other player to the head of this player
time - a int value specifying the time when the information has been recieved
Method Detail

getPosition

public Coordinate getPosition()
Returns the absolute position
Returns:
a Coordinate containing absolute position

getDistChange

public double getDistChange()
Returns change of the distance to this player
Returns:
a double containing change of the distance to this player

getDirChange

public double getDirChange()
Returns change of the relative direction to the player
Returns:
a double containing change of relative direction to the player

getBodyDir

public double getBodyDir()
Returns relative direction of the other player to this player
Returns:
a double containing relative direction of the other player to this player

getHeadDir

public double getHeadDir()
Returns relative direction of the head of other player to this player
Returns:
a double containing relative direction of the head of the other player to the head of this player

getInfoTime

public int getInfoTime()
Returns the time when the information has been recieved
Returns:
a int containing the time when the information has been recieved