wyvern.lib.skills
Class JumpSkill
java.lang.Object
wyvern.kernel.properties.PList
wyvern.kernel.commands.SimpleHandler
wyvern.lib.skills.JumpSkill
- All Implemented Interfaces:
- AddRemoveNotify, BuiltInCommand, Command, MutableProperty, PropertyList
- public class JumpSkill
- extends SimpleHandler
- implements AddRemoveNotify, MutableProperty
Mini-Command that gives you the "jump" command (e.g. when you're a frog).
- Version:
- 1.0, Feb 25, 2001
- 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
JumpSkill
public JumpSkill()
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)
- Jumps.
- Specified by:
handleEvent
in class SimpleHandler
- Parameters:
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.
- Returns:
- true if the event was completed successfully; false
if it couldn't be executed for some reason. It's important
to return the right value, since the appropriate post-hook will
be run depending on whether the command succeeded or failed.
notifyAdd
public void notifyAdd(PropertyList obj)
- Notifies the property that it's being added. Registers
the "jump" command with the player.
- Specified by:
notifyAdd
in interface AddRemoveNotify
- Parameters:
obj
- the GameObject whose property list we're being
added to
notifyRemove
public void notifyRemove(PropertyList obj)
- Notifies the property that it's being removed. Unregisters
the "jump" command from the player.
- Specified by:
notifyRemove
in interface AddRemoveNotify
- Parameters:
obj
- the GameObject whose property list we're being
removed from
createClone
public java.lang.Object createClone()
- Description copied from interface:
MutableProperty
- Produces a clone of the property for the caller. Note: it's
called createClone, not makeClone, because GameObject already
has a makeClone. Some GameObjects can be properties (e.g
inventories) and we can't do overloaded methods based only
on the return type.
- Specified by:
createClone
in interface MutableProperty
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()