|
||||||||||
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.MiscCommands
Implements miscellaneous simple administrative commands.
Field Summary | |
static int |
MAX_DESCRIPTION_LENGTH
|
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 commands. |
boolean |
adjust(CommandEvent event)
Adjusts an item in the agent's inventory to a different location. |
boolean |
afk(CommandEvent event)
Sets an afk (away-from-keyboard) message. |
boolean |
again(CommandEvent event)
Enqueues the last command the user typed. |
boolean |
buy(CommandEvent event)
Attempts to buy something. |
boolean |
chatwho(CommandEvent event)
Shows who's subscribed to a particular chat channel. |
boolean |
crimelist(CommandEvent event)
Shows the player their most recent crimes. |
boolean |
criminal(CommandEvent event)
tell player what crime they last committed, if any |
boolean |
date(CommandEvent event)
|
boolean |
describe(CommandEvent event)
Allows a player to set their own description. |
boolean |
earmuffs(CommandEvent event)
Turns earmuffs on or off for the wizard. |
boolean |
enter(CommandEvent event)
Enters a building. |
boolean |
equip(CommandEvent event)
Tries to wield a weapon and wear all available armor. |
boolean |
ethermuffs(CommandEvent event)
Turns ethermuffs on or off for the wizard. |
boolean |
fogeys(CommandEvent event)
Shows the "who" list, sorted by birthday. |
java.lang.reflect.Method |
getHandler(java.lang.String verb)
Returns the Method corresponding to the passed verb. |
static MiscCommands |
getImpl()
|
boolean |
grow(CommandEvent event)
|
boolean |
guildmuffs(CommandEvent event)
Turns guildmuffs on or off for the wizard. |
boolean |
h1(CommandEvent event)
|
boolean |
h2(CommandEvent event)
|
boolean |
h3(CommandEvent event)
|
boolean |
h4(CommandEvent event)
|
boolean |
handleEvent(CommandEvent event)
Handles the command. |
boolean |
ignore(CommandEvent event)
Ignores a player (persistently). |
boolean |
join(CommandEvent event)
Turns summon-player and join-player on or off. |
boolean |
keep(CommandEvent event)
Marks a piece of equipment as "kept" so you can't sell it. |
boolean |
learn(CommandEvent event)
Default handler for "learn" command, so if you don't have a spellbook handy it gives you some instructions. |
boolean |
password(CommandEvent event)
Implements change-password. |
boolean |
refund(CommandEvent event)
|
boolean |
repeat(CommandEvent event)
Synonym for "again". |
boolean |
save(CommandEvent event)
Saves the player. |
boolean |
sell(CommandEvent event)
|
boolean |
shrink(CommandEvent event)
|
boolean |
spy(CommandEvent event)
Toggles snooping on or off. |
boolean |
subscribe(CommandEvent event)
Subscribes to a chat-channel. |
boolean |
swim(CommandEvent event)
Toggles swimming on or off. |
boolean |
time(CommandEvent event)
|
boolean |
tnl(CommandEvent event)
Shows XP to next level. |
boolean |
unignore(CommandEvent event)
Un-ignores a player you were ignoring. |
boolean |
units(CommandEvent event)
Changes unit system for displaying weights and measures. |
boolean |
unkeep(CommandEvent event)
Removes the flag on a piece of equipment that keeps you from selling it accidentally. |
boolean |
unsell(CommandEvent event)
|
boolean |
unsubscribe(CommandEvent event)
Unsubscribes from a chat-channel. |
boolean |
value(CommandEvent event)
|
boolean |
veterans(CommandEvent event)
Shows the "who" list sorted by age (total time online). |
boolean |
where(CommandEvent event)
Tells the player what map they're in. |
boolean |
wizards(CommandEvent event)
Shows all the visible wizards online. |
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_DESCRIPTION_LENGTH
Method Detail |
public static MiscCommands getImpl()
public java.lang.reflect.Method getHandler(java.lang.String verb)
public void addCommands(java.util.Map commands, CommandList list)
addCommands
in interface BuiltInCommand
addCommands
in class SimpleHandler
list
- the CommandList we're associating with, if anycommands
- the map to place our commands in.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 password(CommandEvent event)
event
- the eventpublic boolean again(CommandEvent event)
public boolean repeat(CommandEvent event)
public boolean learn(CommandEvent event)
public boolean afk(CommandEvent event)
public boolean describe(CommandEvent event)
public boolean enter(CommandEvent event)
public boolean equip(CommandEvent event)
public boolean adjust(CommandEvent event)
public boolean earmuffs(CommandEvent event)
event
- the command event
public boolean ethermuffs(CommandEvent event)
event
- the command event
public boolean guildmuffs(CommandEvent event)
event
- the command event
public boolean keep(CommandEvent event)
public boolean unkeep(CommandEvent event)
public boolean ignore(CommandEvent event)
public boolean unignore(CommandEvent event)
public boolean join(CommandEvent event)
public boolean swim(CommandEvent event)
public boolean spy(CommandEvent event)
public boolean subscribe(CommandEvent event)
public boolean unsubscribe(CommandEvent event)
public boolean chatwho(CommandEvent event)
public boolean crimelist(CommandEvent event)
public boolean criminal(CommandEvent event)
public boolean buy(CommandEvent event)
public boolean where(CommandEvent event)
public boolean units(CommandEvent event)
public boolean fogeys(CommandEvent event)
public boolean veterans(CommandEvent event)
public boolean wizards(CommandEvent event)
public boolean sell(CommandEvent event)
public boolean value(CommandEvent event)
public boolean refund(CommandEvent event)
public boolean unsell(CommandEvent event)
public boolean h1(CommandEvent event)
public boolean h2(CommandEvent event)
public boolean h3(CommandEvent event)
public boolean h4(CommandEvent event)
public boolean shrink(CommandEvent event)
public boolean grow(CommandEvent event)
public boolean save(CommandEvent event)
public boolean time(CommandEvent event)
public boolean date(CommandEvent event)
public boolean tnl(CommandEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |