|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.uni_paderborn.robots.robotArenaInterface.FieldData
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.
| Field Summary | |
private int |
fieldID
contains the "random", unique ID of the field |
private ItemData |
item
contains the reference to an item or 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 |
|
| Field Detail |
private int fieldID
private ItemData item
| Constructor Detail |
public FieldData(int fieldID,
ItemData item)
fieldID - unique ID of the fieldItemData - Item on the field| Method Detail |
public final int getFieldID()
public final ItemData getItem()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||