|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.properties.HealersCurse
Property that prohibits players from entering hospitals or drinking from fountains When the property gets added or removed to the player, it registers apply and teleport hooks on the player.
Constructor Summary | |
HealersCurse()
|
Method Summary | |
void |
addTime()
|
java.lang.Object |
createClone()
Clones the object. |
GameObject |
getTarget()
Returns the NPC we're attached to. |
void |
handleApply(CommandEvent event)
|
void |
handleTeleport(CommandEvent event)
Handles user trying to leave. |
void |
hookEvent(java.lang.String hookName,
CommandEvent data)
Gives the HookCallback a chance to do something with the passed event. |
void |
notifyAdd(PropertyList obj)
Notifies the property it's been added to the target. |
void |
notifyRemove(PropertyList obj)
Notifies the property it's been removed from the monster. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HealersCurse()
Method Detail |
public void handleApply(CommandEvent event)
public void handleTeleport(CommandEvent event)
public void hookEvent(java.lang.String hookName, CommandEvent data)
HookCallback
hookEvent
in interface HookCallback
hookName
- the name of the hook, such as "movePreHook".data
- the CommandEvent encapsulating the event parameterspublic void notifyAdd(PropertyList obj)
notifyAdd
in interface AddRemoveNotify
obj
- the monster to add the property topublic void notifyRemove(PropertyList obj)
notifyRemove
in interface AddRemoveNotify
obj
- the PropertyList we're being removed frompublic GameObject getTarget()
public void addTime()
public java.lang.Object createClone()
createClone
in interface MutableProperty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |