|
||||||||||
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.maps.MapObject wyvern.lib.magic.misc.PortableHole
A portable hole. You can crawl into it and disappear.
Field Summary |
Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
PortableHole()
|
Method Summary | |
void |
apply(Commandable agent)
Puts the user in the hole. |
CommandEvent |
createEvent(CommandEvent initial)
Creates the event. |
boolean |
execute(CommandEvent event)
Executes the event. |
void |
hookEvent(java.lang.String hookName,
CommandEvent event)
Prevent dropping items in the hole - it's too risky, error-prone, and they don't serialize out anyway, which is confusing. |
void |
initialize()
Sets default properties. |
boolean |
knowsCommand(java.lang.String cmd)
Returns true if we know the command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PortableHole()
Method Detail |
public void initialize()
initialize
in interface GameObject
initialize
in class MapObject
public void apply(Commandable agent)
apply
in interface Applyable
agent
- the person applying the objectpublic boolean knowsCommand(java.lang.String cmd)
knowsCommand
in interface Command
cmd
- the entire command string, including arguments
public CommandEvent createEvent(CommandEvent initial)
createEvent
in interface Command
initial
- a "blank" CommandEvent containing only the
command text and the agent who's performing the command. This
initial event is created by the originator of the event (e.g.
the AI or player's command preprocessor).
public boolean execute(CommandEvent event)
execute
in interface Command
event
- the CommandEvent to execute
public void hookEvent(java.lang.String hookName, CommandEvent event)
hookEvent
in interface HookCallback
hookName
- the name of the hook, such as "movePreHook".event
- the CommandEvent encapsulating the event parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |