Class ObjectPerception
java.lang.Object
|
+--ObjectPerception
- public class ObjectPerception
- extends java.lang.Object
This class is used to represent the perception of an object of the game.
For every object the following information is stored:
- time when it was perceived
- the name according to the message text like "g r" for the right goal
- the distance to the player
- the direction in which is was perceived
- Version:
- 1.0
- Author:
- Gerald Kuehne, Markus Beier
Constructor Summary |
(package private) |
ObjectPerception(int time,
java.lang.String name,
double distance,
double direction)
|
Method Summary |
double |
direction()
The direction in which the object was perceived |
double |
distance()
The distance in which the object was perceived |
java.lang.String |
name()
The name of the object |
int |
time()
The time when the object has been perceived |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
time
private int time
name
private java.lang.String name
distance
private double distance
direction
private double direction
ObjectPerception
ObjectPerception(int time,
java.lang.String name,
double distance,
double direction)
time
public int time()
- The time when the object has been perceived
name
public java.lang.String name()
- The name of the object
distance
public double distance()
- The distance in which the object was perceived
direction
public double direction()
- The direction in which the object was perceived