|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.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 GameObjectinitialize in class Wallpublic int getHP()
getHP in interface Damageablepublic int getMaxHP()
getMaxHP in interface Damageablepublic void adjustHP(int adjust)
adjustHP in interface Damageableadjust - a number (possibly negative) to add to the wall's hppublic void notifyAttacked(Commandable attacker)
notifyAttacked in interface Attackablepublic void kill(GameObject attacker)
kill in interface Damageableattacker - the player/monster/iron-gate/whatever that
did the final blow. Can be null.public void destroy()
GameObjectThis 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 GameObjectdestroy in class MapObjectpublic int getXPAward()
getXPAward in interface Attackablepublic java.lang.String getDamagedDescription()
getDamagedDescription in interface GameObjectgetDamagedDescription in class MapObjectpublic boolean isAttackable()
GameObject
isAttackable in interface GameObjectisAttackable in class MapObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||