|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ArenaAction>
fr.umlv.botbattle.ArenaAction
public enum ArenaAction
Bot movements in the Arena.
All enum values can be used to indicate a
movement using
BotContext.nextTurn(action).
The possible return values are enum values of
ArenaItem.
BotContext.nextTurn(BotContext.Action)| Enum Constant Summary | |
|---|---|
DOWN
ask the game to move the bot down. |
|
LEFT
ask the game to move the bot left. |
|
RIGHT
ask the game to move the bot right. |
|
UP
ask the game to move the bot up. |
|
| Method Summary | |
|---|---|
static ArenaAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ArenaAction[] |
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 ArenaAction UP
public static final ArenaAction DOWN
public static final ArenaAction LEFT
public static final ArenaAction RIGHT
| Method Detail |
|---|
public static final ArenaAction[] values()
for(ArenaAction c : ArenaAction.values())
System.out.println(c);
public static ArenaAction 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 | ||||||||