|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.commands.DropCommand
Drops an item from the agent's inventory.
Method Summary | |
void |
addCommands(java.util.Map commands,
CommandList list)
Adds commands. |
CommandEvent |
createEvent(CommandEvent initial)
Creates a drop event. |
boolean |
execute(CommandEvent ev)
Executes the DropEvent. |
static DropCommand |
getImpl()
|
boolean |
knowsCommand(java.lang.String command)
We don't have any way of determining that we don't know how to handle the command based just on its arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DropCommand getImpl()
public void addCommands(java.util.Map commands, CommandList list)
addCommands
in interface BuiltInCommand
list
- the CommandList we're being added tocommands
- the Map to which to add the commands we handlepublic boolean knowsCommand(java.lang.String command)
knowsCommand
in interface Command
command
- the command to examine
public CommandEvent createEvent(CommandEvent initial)
createEvent
in interface Command
initial
- the "starter" event, with the args & agent
public boolean execute(CommandEvent ev)
execute
in interface Command
ev
- the TargetedEvent to execute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |