|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.commands.SimpleHandler wyvern.lib.commands.StartupCommand
Allows you to specify commands that run when you log in.
Field Summary | |
static int |
MAX_PLAYER_COMMANDS
|
static int |
MAX_WIZ_COMMANDS
|
Fields inherited from class wyvern.kernel.commands.SimpleHandler |
delay_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Method Summary | |
void |
addCommands(java.util.Map commands,
CommandList list)
Adds our commands. |
static StartupCommand |
getImpl()
|
boolean |
handleAdd(Commandable agent,
java.lang.String[] args)
Adds a new command to the end of the list. |
boolean |
handleChange(Commandable agent,
java.lang.String[] args)
Changes the command stored at a particular location. |
boolean |
handleEvent(CommandEvent event)
Modifies or views the startup-cmds list. |
boolean |
handleList(Commandable agent,
java.lang.String[] args)
Lists out your stored commands, with nice counting numbers in front of each one. |
boolean |
handleMove(Commandable agent,
java.lang.String[] args)
Moves a startup command to a new spot in the list. |
boolean |
handleRemove(Commandable agent,
java.lang.String[] args)
Removes a command from the list, by counting numbers. |
Methods inherited from class wyvern.kernel.commands.SimpleHandler |
createEvent, execute, knowsCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAX_PLAYER_COMMANDS
public static final int MAX_WIZ_COMMANDS
Method Detail |
public static StartupCommand getImpl()
public void addCommands(java.util.Map commands, CommandList list)
SimpleHandler
addCommands
in interface BuiltInCommand
addCommands
in class SimpleHandler
commands
- a Map whose keys are the command verbs,
and whose values are references to the SimpleHandler
instance that wants to handle the command.list
- the Player, Monster, Vehicle or other CommandList
implementation for which addCommands() is being called.public boolean handleEvent(CommandEvent event)
handleEvent
in class SimpleHandler
event
- a CommandEvent with various fields filled in:
the agent performing the command, the command verb and arguments,
the delay for the command, and success/failure messages.
public boolean handleAdd(Commandable agent, java.lang.String[] args)
agent
- the playerargs
- their args - first one is the subcommand, and there's
guaranteed to be at least one more.
public boolean handleRemove(Commandable agent, java.lang.String[] args)
agent
- the playerargs
- their args - first one is the subcommand, and there's
guaranteed to be at least one more.
public boolean handleMove(Commandable agent, java.lang.String[] args)
agent
- the playerargs
- their args - first one is the subcommand, and there's
guaranteed to be at least one more.
public boolean handleList(Commandable agent, java.lang.String[] args)
agent
- the playerargs
- their args - first one is the subcommand, and there's
guaranteed to be at least one more.
public boolean handleChange(Commandable agent, java.lang.String[] args)
agent
- the playerargs
- their args - first one is the subcommand, and there's
guaranteed to be at least one more.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |