|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object robocraft.common.CommonEnum robocraft.common.Team
Every GameObject has a designated team which is one of Team A, Team B, or Neutral. Robots are either on Team A or Team B, and mines are Neutral.
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 ==
.
GameObject.getTeam()
,
Serialized FormField Summary | |
static Team |
A
The Team assigned to robots on Team A. |
static Team |
B
The Team assigned to robots on Team B. |
static Team |
NEUTRAL
Neither team. |
Method Summary | |
Team |
opponent()
return the oppononent of this team (Team.A opponent is Team.B and vice versa). |
java.lang.String |
toString()
Returns one of the three Strings "Team A", "Team B", or "Neutral". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Team A
public static final Team B
public static final Team NEUTRAL
Method Detail |
public java.lang.String toString()
public Team opponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |