giavamachia
Class Observation

java.lang.Object
  |
  +--giavamachia.Observation

public class Observation
extends java.lang.Object

An object detected by the Robot. Detectable objects are Robots and Mines.


Field Summary
 int direction
          Polar coordinates of the seen object.
 int kind
          Nature of the seen object.
static int MINE
          Object seen is a Mine
 java.lang.String name
          Name of the object.
 int range
          Polar coordinates of the seen object.
static int ROBOT
          Object seen is a Robot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROBOT

public static final int ROBOT
Object seen is a Robot

MINE

public static final int MINE
Object seen is a Mine

direction

public int direction
Polar coordinates of the seen object. Angle in degrees, starting at three o'clock, counter-clockwise

range

public int range
Polar coordinates of the seen object. Radius in Arena units, starting from the Robot actual position

kind

public int kind
Nature of the seen object.

name

public java.lang.String name
Name of the object. It is null for mines.