|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ArenaItem>
fr.umlv.botbattle.ArenaItem
public enum ArenaItem
This enumeration represents all item types of the arena.
This enum is used as a response for a movement using
BotContext.nextTurn(action)
or to indicate visible items using the
radar.
BotContext.nextTurn(BotContext.Action),
ArenaInfo.radar()| Enum Constant Summary | |
|---|---|
BOMB
represents a bomb. |
|
EMPTY
represents an empty cell. |
|
ENEMY_BOT
represents a bot from another army. |
|
FRIEND_BOT
represents a bot from the same army that the current bot. |
|
WALL
represents a wall. |
|
| Method Summary | |
|---|---|
static ArenaItem |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ArenaItem[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ArenaItem EMPTY
public static final ArenaItem BOMB
public static final ArenaItem WALL
public static final ArenaItem ENEMY_BOT
public static final ArenaItem FRIEND_BOT
| Method Detail |
|---|
public static final ArenaItem[] values()
for(ArenaItem c : ArenaItem.values())
System.out.println(c);
public static ArenaItem valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||