de.uni_paderborn.robots.robotArenaInterface
Class FieldData

java.lang.Object
  |
  +--de.uni_paderborn.robots.robotArenaInterface.FieldData

public final class FieldData
extends java.lang.Object

This class contains the data for a field and can have up to one reference to an ItemData Object. Please be aware that if there is no item on the field "getItem" returns null.


Constructor Summary
FieldData(int fieldID, ItemData item)
          constructor used to set the attributes
 
Method Summary
 int getFieldID()
          returns the ID of the field
 ItemData getItem()
          returns a reference to an ItemData Object or null if the field is empty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldData

public FieldData(int fieldID,
                 ItemData item)
constructor used to set the attributes
Method Detail

getFieldID

public final int getFieldID()
returns the ID of the field

getItem

public final ItemData getItem()
returns a reference to an ItemData Object or null if the field is empty