|
||||||||||
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.classes.DynamicObject wyvern.lib.classes.QuestItem
Quest items cannot be dropped, thrown, given away or otherwise removed from inventory (or they disappear). One special case: if it's being given to a monster with the property "quest-monster", it won't disappear, and will successfully transfer to the monster.
Field Summary | |
protected boolean |
solving_
|
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 | |
QuestItem()
|
Method Summary | |
void |
dropped(Commandable agent)
Notifies the object that the specified agent has dropped it. |
java.lang.String |
getDestroyMessage()
Returns the message to print when the object disappears, as a result of being dropped or whatever. |
void |
initialize()
Sets default properties |
void |
pickedUp(Commandable agent)
Notifies the object that the specified agent has picked it up. |
void |
sayGoodbye()
Broadcasts the fact that it's going away. |
void |
setMap(GameMap map,
int x,
int y)
If we're active (someone has picked us up), don't go in map. |
void |
solvingQuest()
Notifies the item that it's being given to a quest monster, so it shouldn't disappear when it's removed from inventory. |
void |
targetEnteredContainer(ContainerChangeEvent event)
Target object was added to a bag or inventory. |
void |
targetLeftContainer(ContainerChangeEvent event)
Target object was removed from a bag or inventory. |
Methods inherited from class wyvern.lib.classes.DynamicObject |
adjustHP, computeHP, getHP, getMaxHP, kill |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wyvern.lib.MethodHookable |
addMethodHook, removeMethodHook, runMethodHook |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Field Detail |
protected boolean solving_
Constructor Detail |
public QuestItem()
Method Detail |
public void initialize()
initialize
in interface GameObject
initialize
in class DynamicObject
public void targetEnteredContainer(ContainerChangeEvent event)
targetEnteredContainer
in interface ContainerChangeListener
public void targetLeftContainer(ContainerChangeEvent event)
targetLeftContainer
in interface ContainerChangeListener
public void pickedUp(Commandable agent)
pickedUp
in interface PickupInterest
agent
- the agent picking up the objectpublic void dropped(Commandable agent)
dropped
in interface PickupInterest
agent
- the agent that dropped the objectpublic void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
public void sayGoodbye()
public void solvingQuest()
public java.lang.String getDestroyMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |