battlecode.common
public interface GameObject
myRobotController.senseLocationOf(someGameObject).
The only valid GameObjects are those returned by sensing objects on the map. If a contestant writes
a class that implements GameObject, that GameObject will be invalid, and will result in a
GameActionException of type GameActionExceptionType.INVALID_OBJECT if it is used.
Team,
RobotController| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Gives the globally unique integer ID of this GameObject
|
RobotLevel |
getRobotLevel()
Gives the level at which this object appears.
|
Team |
getTeam()
Gives this GameObject's team
|
int getID()
Team getTeam()
RobotLevel getRobotLevel()