robocraft.common
Class ObjectType

java.lang.Object
  extended byrobocraft.common.CommonEnum
      extended byrobocraft.common.ObjectType

public class ObjectType
extends robocraft.common.CommonEnum

ObjectType represents the type of a GameObject.

The only instances of this class are those found in the static fields described below. This means that instances can always be meaningfully compared using ==.

See Also:
GameObject.getType()

Field Summary
static ObjectType ENERGON_CUBE
          The ObjectType of an energon cube.
static ObjectType FLYER_ROBOT
          The ObjectType of a Flyer robot.
static ObjectType QUEEN_ROBOT
          The ObjectType of a Queen robot.
static ObjectType SHOOTER_ROBOT
          The ObjectType of a Shooter robot.
static ObjectType SOLDIER_ROBOT
          The ObjectType of a Soldier robot.
 
Method Summary
 boolean isRobot()
          Returns whether this ObjectType is a type of robot and not an energon cube.
 java.lang.String toString()
          Returns a String such as "Soldier" or "EnergonCube".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOLDIER_ROBOT

public static final ObjectType SOLDIER_ROBOT
The ObjectType of a Soldier robot.


SHOOTER_ROBOT

public static final ObjectType SHOOTER_ROBOT
The ObjectType of a Shooter robot.


FLYER_ROBOT

public static final ObjectType FLYER_ROBOT
The ObjectType of a Flyer robot.


QUEEN_ROBOT

public static final ObjectType QUEEN_ROBOT
The ObjectType of a Queen robot.


ENERGON_CUBE

public static final ObjectType ENERGON_CUBE
The ObjectType of an energon cube.

Method Detail

isRobot

public boolean isRobot()
Returns whether this ObjectType is a type of robot and not an energon cube.


toString

public java.lang.String toString()
Returns a String such as "Soldier" or "EnergonCube".