|
||||||||||
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.StaticObject wyvern.lib.classes.random.TreasurePile
Treasure pile: allows you to pick up treasure until it's gone.
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 | |
TreasurePile()
|
Method Summary | |
GameObject |
generate()
Generates some random treasure. |
GameObject |
generateFailSafe(int level)
(Almost) guaranteed to produce some treasure based on level. |
void |
hookEvent(java.lang.String hookName,
Rectangle room,
CommandEvent event)
Player did a "get" in our square. |
void |
initialize()
Sets default properties. |
void |
remove()
Removes from the map (and removes the room hook). |
void |
setMap(GameMap map,
int x,
int y)
Adds a room hook for "get". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TreasurePile()
Method Detail |
public void initialize()
initialize
in interface GameObject
initialize
in class StaticObject
public void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
public void remove()
remove
in interface GameObject
remove
in class MapObject
public void hookEvent(java.lang.String hookName, Rectangle room, CommandEvent event)
hookEvent
in interface RoomHookCallback
hookName
- the name of the hook (e.g. "sayPostHook") that's
being run.room
- the room in which the event took place, in case
the callback is registered for the same hook in more than
one room.event
- the eventpublic GameObject generate()
public GameObject generateFailSafe(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |