|
||||||||||
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.Firewall
Firewall. Burns you when you're standing in it.
Field Summary | |
static int |
DEFAULT_DAMAGE
The default wc-fire if the archetype doesn't specify one. |
static int |
DEFAULT_DELAY
The default timer delay if the archetype doesn't specify one. |
protected Monster |
monster_
Tracks the last monster that stepped on this square. |
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 | |
Firewall()
|
Method Summary | |
void |
damageMonster(Monster m)
Does terrain-specific damage to the monster. |
int |
getDelay()
Returns the delay between damage timers. |
void |
initialize()
Adds class-default properties. |
protected void |
setDefaultDamageType()
Sets the damage type to wc-fire. |
void |
steppedOn(Monster m)
Notification that a monster has stepped in the square containing this object. |
void |
timerExpired()
Damage timer went off. |
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 |
Field Detail |
protected Monster monster_
public static final int DEFAULT_DELAY
public static final int DEFAULT_DAMAGE
Constructor Detail |
public Firewall()
Method Detail |
public void initialize()
You can change the message used when damage is done by setting a "show-defender-msg" string property to something like "The wall shocks you."
The wall's damage timer (how frequently it damages people) is compiled in as DEFAULT_DELAY, but you can override it with a "delay" int property.
initialize
in interface GameObject
initialize
in class Wall
protected void setDefaultDamageType()
public void steppedOn(Monster m)
steppedOn
in interface WalkNotify
m
- the Monster who stepped into this squarepublic void timerExpired()
timerExpired
in interface Timed
public void damageMonster(Monster m)
m
- the Monster to damage. Uses Combat.damageMonster
to do the damage.public int getDelay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |