|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.ui.commands.Command
The list of commands for the game. Some triv
| Field Summary | |
|---|---|
static Command |
E
The "move east" command. |
static Command |
ENTER_LOCATION
Enters a location on the map. |
static Command |
N
The "move north" command. |
static Command |
NE
The "move north east" command. |
static Command |
NW
The "move north west" command. |
static Command |
S
The "move south" command. |
static Command |
SE
The "move south east" command. |
static Command |
SW
The "move south west" command. |
static Command |
W
The "move west" command. |
static Command |
WAIT
The "wait" command. |
static RepeatingCommand |
WALK_E
The "walk east" command. |
static RepeatingCommand |
WALK_N
The "walk north" command. |
static RepeatingCommand |
WALK_NE
The "walk north east" command. |
static RepeatingCommand |
WALK_NW
The "walk north west" command. |
static RepeatingCommand |
WALK_S
The "walk south" command. |
static RepeatingCommand |
WALK_SE
The "walk south east" command. |
static RepeatingCommand |
WALK_SW
The "walk south west" command. |
static RepeatingCommand |
WALK_W
The "walk west" command. |
static RepeatingCommand |
WALK_WAIT
The "walk wait" command. |
| Constructor Summary | |
|---|---|
protected |
Command(java.lang.String name)
Creates a new command object with a given logical name. |
| Method Summary | |
|---|---|
boolean |
execute(Being being)
Executes the command on a being. |
protected abstract boolean |
executeImpl(Being being)
Executes the command on a being. |
static Command |
getCommand(java.lang.String name)
Returns the command object for a given logical name. |
java.lang.String |
toString()
Returns the string representation of a given command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Command WAIT
public static final Command N
public static final Command NE
public static final Command E
public static final Command SE
public static final Command S
public static final Command SW
public static final Command W
public static final Command NW
public static final RepeatingCommand WALK_WAIT
public static final RepeatingCommand WALK_N
public static final RepeatingCommand WALK_NE
public static final RepeatingCommand WALK_E
public static final RepeatingCommand WALK_SE
public static final RepeatingCommand WALK_S
public static final RepeatingCommand WALK_SW
public static final RepeatingCommand WALK_W
public static final RepeatingCommand WALK_NW
public static final Command ENTER_LOCATION
| Constructor Detail |
|---|
protected Command(java.lang.String name)
name - the logical name for this command token| Method Detail |
|---|
public final boolean execute(Being being)
being - the being who will execute the command
protected abstract boolean executeImpl(Being being)
being - the being who will execute the command
public java.lang.String toString()
toString in class java.lang.Objectpublic static Command getCommand(java.lang.String name)
name - the logical name of the command object
null if no such object
exists
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||