|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface GameObject
A GameObject instance represents an object in the game world.
A GameObject should have a final, globally unique integer ID.
These fields can be accessed by the accessors in GameObject. Any other, mutable information about the
GameObject must be sensed, e.g. by 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| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
int getID()
Team getTeam()
RobotLevel getRobotLevel()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||