wyvern.lib.commands
Class SkillsCommand
java.lang.Object
wyvern.kernel.properties.PList
wyvern.kernel.commands.SimpleHandler
wyvern.lib.commands.SkillsCommand
- All Implemented Interfaces:
- BuiltInCommand, Command, PropertyList
- public class SkillsCommand
- extends SimpleHandler
Handles the "skills" command, which prints information
about the player's current skills (including points from
magical bonuses).
- Version:
- 1.0, Jun 05, 2002
- Author:
- Steve Yegge
Methods inherited from class wyvern.kernel.properties.PList |
addProperty, addTransientProperty, adjustDoubleProperty, adjustIntProperty, adjustLongProperty, adjustTransientDoubleProperty, adjustTransientIntProperty, adjustTransientLongProperty, countLocalProperties, debugProperties, dismantlePropertyList, getDoubleProperty, getInheritedProperty, getInteger, getIntProperty, getLocalProperties, getLocalProperty, getLongProperty, getParent, getPersistentDoubleProperty, getPersistentIntProperty, getPersistentLocalProperties, getPersistentLongProperty, getPersistentProperty, getProfilingInfo, getProperties, getProperties, getPropertiesIncludingTransients, getPropertiesIncludingTransients, getProperty, getSerializableProperties, getSerializableProperty, getStringProperty, getTransientDoubleProperty, getTransientIntProperty, getTransientLongProperty, getTransientProperties, getTransientProperty, hasLocalProperty, hasPersistentProperty, hasProperty, hasTransientProperty, inheritProperty, isReadOnly, isRemoved, isTransientlyRemoved, printLocalProperties, printProperties, printProperties, printTransientProperties, removeProperty, removeTransientProperty, setDoubleProperty, setIntProperty, setLongProperty, setParent, setProperty, setReadOnly, setTransientDoubleProperty, setTransientIntProperty, setTransientLongProperty, setTransientProperty, toString, toString, transientlyRemoveProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getImpl
public static SkillsCommand getImpl()
addCommands
public void addCommands(java.util.Map commands,
CommandList list)
- Description copied from class:
SimpleHandler
- Adds our commands. Subclasses should override this and,
for each command the subclass wants to implement, put it
in the "commands" map.
- Specified by:
addCommands
in interface BuiltInCommand
- Specified by:
addCommands
in class SimpleHandler
- Parameters:
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.
handleEvent
public boolean handleEvent(CommandEvent event)
- Prints skills.
- Specified by:
handleEvent
in class SimpleHandler
- Parameters:
event
- the event
- Returns:
- true if it was completed successfully
printPlayerSkills
public boolean printPlayerSkills(CommandEvent e)
- Shows a Wizard another player's skills
- Parameters:
e
- the event (whose agent is a wizard)
- Returns:
- true if successful
printSkills
public java.lang.StringBuffer printSkills(Player agent)
- Shows any skills the player has acquired, and how many
skill points they have in those skills.
- Parameters:
agent
- the player to print skills for
- Returns:
- a StringBuffer with the skills listed (empty if no skills)