|
||||||||||
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.construct.ConnectedObject wyvern.lib.classes.construct.Wall wyvern.lib.classes.construct.DiggableWall
A wall you can break through.
Field Summary |
Fields inherited from class wyvern.lib.classes.construct.ConnectedObject |
baseBitmapName_ |
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 | |
DiggableWall()
|
Method Summary | |
void |
adjustHP(int adjust)
Adjusts the wall's hit points upwards or downwards. |
void |
destroy()
Tells the object to destroy itself. |
java.lang.String |
getDamagedDescription()
Returns a message like "It is badly damaged". |
int |
getHP()
Returns the object's current hit points. |
int |
getMaxHP()
Returns the object's maximum hit points. |
int |
getXPAward()
Returns XP for this wall. |
void |
initialize()
Initializes the object's default properties. |
boolean |
isAttackable()
Returns true if this is an Attackable. |
void |
kill(GameObject attacker)
Destroys the object. |
void |
notifyAttacked(Commandable attacker)
Notifies the object it's being attacked. |
Methods inherited from class wyvern.lib.classes.construct.Wall |
getNeighborPredicate, predicate, remove, setMap |
Methods inherited from class wyvern.lib.classes.construct.ConnectedObject |
applyBitmap, checkNeighbor, doUpdate, getWallBaseName, haveNeighbor, processNeighbor, setBaseBitmap, stripDirs, teleport, updateBitmap, updateBitmapAndNeighbors |
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 |
Constructor Detail |
public DiggableWall()
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class Wall
public int getHP()
getHP
in interface Damageable
public int getMaxHP()
getMaxHP
in interface Damageable
public void adjustHP(int adjust)
adjustHP
in interface Damageable
adjust
- a number (possibly negative) to add to the wall's hppublic void notifyAttacked(Commandable attacker)
notifyAttacked
in interface Attackable
public void kill(GameObject attacker)
kill
in interface Damageable
attacker
- the player/monster/iron-gate/whatever that
did the final blow. Can be null.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 int getXPAward()
getXPAward
in interface Attackable
public java.lang.String getDamagedDescription()
getDamagedDescription
in interface GameObject
getDamagedDescription
in class MapObject
public boolean isAttackable()
GameObject
isAttackable
in interface GameObject
isAttackable
in class MapObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |