|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object robocraft.player.GameObject
GameObject is a reference to an object in the robocraft world. Every game object has a unique integer ID associated with it. A RobotPlayer implementation can call methods on any GameObject reference, but they will mostly fail if the object is out of sensor range.
Use equals
to determine whether two GameObject
instances represent the same object.
Method Summary | |
boolean |
equals(java.lang.Object obj)
Test for equality |
int |
getID()
Return the unique integer ID of this object. |
MapLocation |
getLocation()
Return's this object's location. |
Team |
getTeam()
This object's team. |
ObjectType |
getType()
Return's this object's type. |
int |
hashCode()
|
java.lang.String |
toString()
String representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getID()
public Team getTeam()
public MapLocation getLocation() throws GameActionException
GameActionException
- under any of the following conditions:
public ObjectType getType()
public boolean equals(java.lang.Object obj)
obj
- another object
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |