robocraft.common
Class ObjectType

java.lang.Object
  extended byrobocraft.common.CommonEnum
      extended byrobocraft.common.ObjectType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RobotType

public class ObjectType
extends robocraft.common.CommonEnum
implements java.io.Serializable

ObjectType represents the type of a non-Robot 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:
RobotType, GameObject.getType(), Serialized Form

Field Summary
static ObjectType FLAG
          ObjectType instance referring to a flag object type.
static ObjectType MINE
          ObjectType instance referring to a mine object type.
 
Constructor Summary
protected ObjectType(java.lang.String str, boolean isRobot)
           
 
Method Summary
 boolean isRobot()
          Returns whether this ObjectType is a type of robot.
 java.lang.String toString()
          Returns a String such as "Sentry" or "Falcon".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MINE

public static final ObjectType MINE
ObjectType instance referring to a mine object type.


FLAG

public static final ObjectType FLAG
ObjectType instance referring to a flag object type.

Constructor Detail

ObjectType

protected ObjectType(java.lang.String str,
                     boolean isRobot)
Method Detail

isRobot

public boolean isRobot()
Returns whether this ObjectType is a type of robot.


toString

public java.lang.String toString()
Returns a String such as "Sentry" or "Falcon".