roboplayer.core.memory
Class ObjectInfo

java.lang.Object
  |
  +--roboplayer.geometry.Polar
        |
        +--roboplayer.core.memory.ObjectInfo

public class ObjectInfo
extends Polar

Represents object in Visual information.

Version:
1.0
Author:
Krzysztof Langner

Field Summary
 double faceDir
          Face direction (for players)
 java.lang.String name
          Name of this object
 double probability
           
 
Fields inherited from class roboplayer.geometry.Polar
dir, dist
 
Constructor Summary
ObjectInfo(java.lang.String type)
          Constructor
 
Method Summary
 Polar getPolarChange()
          Get position change in polar coords
 Vector2d getSpeed()
          Get speed vector
 Vector2d getVectorPos()
          Get position vector coords
 void polar2Vector(double dirOffset, Vector2d orgin)
          This function updates Vector coordinates in all ObjectInfo object.
 void setPolarChange(Polar p)
          Set position change in polar coords
 void setSpeed(Vector2d newSpeed)
          Set speed vector
 void setVectorPos(Vector2d pos)
          Get position vector coords
 java.lang.String toString()
          debug info
 
Methods inherited from class roboplayer.geometry.Polar
addOld, getDistance, getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name of this object


faceDir

public double faceDir
Face direction (for players)


probability

public double probability
Constructor Detail

ObjectInfo

public ObjectInfo(java.lang.String type)
Constructor

Method Detail

getPolarChange

public Polar getPolarChange()
Get position change in polar coords


setPolarChange

public void setPolarChange(Polar p)
Set position change in polar coords


getVectorPos

public Vector2d getVectorPos()
Get position vector coords


setVectorPos

public void setVectorPos(Vector2d pos)
Get position vector coords


getSpeed

public Vector2d getSpeed()
Get speed vector


setSpeed

public void setSpeed(Vector2d newSpeed)
Set speed vector


polar2Vector

public void polar2Vector(double dirOffset,
                         Vector2d orgin)
This function updates Vector coordinates in all ObjectInfo object.


toString

public java.lang.String toString()
debug info

Overrides:
toString in class Polar
Returns:
object converted to string