|
||||||||||
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.kernel.commands.AbstractCommandable wyvern.lib.classes.construct.FlyingBoulder
A huge rock that flies around a room, damaging whatever it hits.
Field Summary | |
static int |
DEFAULT_RATE
|
protected int |
direction_
|
protected Predicate |
predicate_
|
protected Timer |
timer_
|
Fields inherited from class wyvern.kernel.commands.AbstractCommandable |
hookList_, queue_, started_ |
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 |
Fields inherited from interface wyvern.common.net.RemoteAudio |
DEFAULT_ALERT_GAIN, DEFAULT_ALERT_REPEAT_DELAY, DEFAULT_ALERT_REPEATS, DEFAULT_GAIN, DEFAULT_REPEAT_DELAY, DEFAULT_REPEATS |
Constructor Summary | |
FlyingBoulder()
|
Method Summary | |
void |
bounce()
Change to a different direction. |
GameObject |
canEnter(GameMap map,
int x,
int y)
Returns true if the boulder is allowed to enter the specified location. |
protected void |
damageMonster(Attackable mon)
|
void |
destroy()
Tells the object to destroy itself. |
void |
initialize()
Initializes the object's default properties. |
void |
killTimer()
|
GameObject |
move()
Move a square forward. |
void |
remove()
Removes this object from its map. |
protected void |
setDamageAmount(GameMap map)
|
void |
setMap(GameMap map,
int x,
int y)
We've been put in a map. |
protected void |
setMoveTimer()
|
void |
timerExpired()
Called by TimerManager to notify object that timer has expired. |
protected void |
tryMovingAgain()
|
Methods inherited from class wyvern.kernel.commands.AbstractCommandable |
addAttack, addHook, addMessageListener, addMethodHook, checkAnimated, command, command, commandNow, ensureAI, ensureEventQueue, fireMessageReceived, getAI, getCapName, getCombatQueue, getCommand, getEncumbrance, getFiringPoint, getHookList, getHooks, getInventory, getName, getQueue, isCommandable, isStarted, isTelnet, message, message, message, pauseSound, playAlert, playAlert, playDefaultMusic, playPriorityMusic, playPriorityMusic, playSound, playSound, registerCommand, removeAttack, removeHook, removeMessageListener, removeMethodHook, resumeSound, runFailedPostHook, runMethodHook, runPostHook, runPreHook, sendPicture, sendPicture, setAI, setEncumbrance, setMusicGain, setName, setSoundGain, start, stop, stopAllSounds, stopMusic, stopSound, unregisterCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Field Detail |
public static final int DEFAULT_RATE
protected Timer timer_
protected int direction_
protected Predicate predicate_
Constructor Detail |
public FlyingBoulder()
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class MapObject
public void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
public void remove()
GameObject
remove
in interface GameObject
remove
in class MapObject
protected void setDamageAmount(GameMap map)
protected void setMoveTimer()
public void timerExpired()
Timed
timerExpired
in interface Timed
protected void damageMonster(Attackable mon)
protected void tryMovingAgain()
public GameObject move()
public void bounce()
public void killTimer()
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 AbstractCommandable
public GameObject canEnter(GameMap map, int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |