|
||||||||||
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.CombatFlash
This object represents a really minimal and short-lived "flash"... an image drawn for a half-second or so which then removes itself from the game.
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 | |
CombatFlash()
|
|
CombatFlash(int damage)
|
Method Summary | |
void |
destroy()
Tells the object to destroy itself. |
void |
initialize()
Initializes the object's default properties. |
void |
setDamage(int damage)
Set its pic according to the damage being done. |
void |
setMap(GameMap map,
int x,
int y)
Add it to the map, generally on top of the target critter. |
void |
stop()
|
void |
timerExpired()
Called by TimerManager to notify object that timer has expired. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CombatFlash()
public CombatFlash(int damage)
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class MapObject
public void setDamage(int damage)
public void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
public void stop()
public void destroy()
GameObject
This method is called when the object's parent map is unloaded, when a wizard disposes the object, or when the object is destroyed via some natural force (e.g. a fireball). If you override this method, make sure to call the superclass version, so the superclass can perform its own cleanup if needed.
destroy
in interface GameObject
destroy
in class MapObject
public void timerExpired()
Timed
timerExpired
in interface Timed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |