|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object robocraft.common.CommonEnum robocraft.common.ObjectType
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 ==
.
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 |
public static final ObjectType MINE
public static final ObjectType FLAG
Constructor Detail |
protected ObjectType(java.lang.String str, boolean isRobot)
Method Detail |
public boolean isRobot()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |