|
||||||||||
| 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.kernel.commands.AbstractCommandable
wyvern.lib.classes.magic.Spell
wyvern.lib.spells.WizardEye
Creates a moving "eye" that the caster can maneuver around.
| Nested Class Summary |
| Nested classes inherited from class wyvern.lib.classes.magic.Spell |
Spell.DamageVisitor, Spell.UsableReagentPredicate |
| Field Summary | |
static int |
WIZARD_EYE_MANA
|
| Fields inherited from class wyvern.lib.classes.magic.Spell |
AIR, AIR_AND_DEATH, AIR_AND_LIFE, AIR_AND_MIND, AIR_AND_SPIRIT, ART_MANA_REDUCTIONS, bitmaps_, CONJURATION, damager_, DEATH, DEATH_AND_MIND, DEATH_AND_SPIRIT, EARTH, EARTH_AND_AIR, EARTH_AND_DEATH, EARTH_AND_LIFE, EARTH_AND_MIND, EARTH_AND_SPIRIT, ENCHANTMENT, EVOCATION, FIRE, FIRE_AND_AIR, FIRE_AND_DEATH, FIRE_AND_EARTH, FIRE_AND_LIFE, FIRE_AND_MIND, FIRE_AND_SPIRIT, FIRE_AND_WATER, INCANTATION, LIFE, LIFE_AND_DEATH, LIFE_AND_MIND, LIFE_AND_SPIRIT, MIND, MIND_AND_SPIRIT, SELF_DAMAGE_CHANCE, SPIRIT, WATER, WATER_AND_AIR, WATER_AND_DEATH, WATER_AND_EARTH, WATER_AND_LIFE, WATER_AND_MIND, WATER_AND_SPIRIT |
| 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 | |
WizardEye()
|
|
| Method Summary | |
protected void |
addToMap(GameMap map,
java.util.List locs)
Updates our map location. |
void |
createCommandList()
Creates a CommandList holding the built-in game commands that we respond to. |
void |
dispel()
Dispels the spell. |
Command |
getCommand(CommandEvent event)
Returns the Command to handle our commands. |
void |
hookEvent(java.lang.String hookName,
CommandEvent event)
Gives the HookCallback a chance to do something with the passed event. |
void |
initialize()
Adds the default properties for a Spell object. |
void |
message(java.lang.String msg)
Forwards messages back to the caster. |
void |
moveCamera(GameMap map,
int x,
int y)
Moves the camera to a new location. |
void |
relinquishCamera(Player p)
|
void |
setMap(GameMap map,
int x,
int y)
Sets our map - puts caster's camera in our position. |
void |
start()
Starts the spell. |
void |
timerExpired()
Called by TimerManager to notify object that timer has expired. |
| Methods inherited from class wyvern.kernel.commands.AbstractCommandable |
addAttack, addHook, addMessageListener, addMethodHook, checkAnimated, command, command, commandNow, ensureEventQueue, fireMessageReceived, getAI, getCapName, getCombatQueue, getEncumbrance, getFiringPoint, getHookList, getHooks, getInventory, getName, getQueue, isCommandable, isStarted, isTelnet, 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, 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 WIZARD_EYE_MANA
| Constructor Detail |
public WizardEye()
| Method Detail |
public void initialize()
Spell
initialize in interface GameObjectinitialize in class Spellpublic void start()
Spell
start in interface Commandablestart in class Spell
public void hookEvent(java.lang.String hookName,
CommandEvent event)
HookCallback
hookEvent in interface HookCallbackhookName - the name of the hook, such as "movePreHook".event - the CommandEvent encapsulating the event parameters
public void setMap(GameMap map,
int x,
int y)
setMap in interface GameObjectsetMap in class MapObject
protected void addToMap(GameMap map,
java.util.List locs)
addToMap in class MapObjectmap - the map to add tolocs - the new locations for the object
public void moveCamera(GameMap map,
int x,
int y)
map - the map to put it inx - the eye object x locationy - the eye object y locationpublic void message(java.lang.String msg)
message in interface Commandablemessage in class AbstractCommandablepublic void dispel()
SpellYou have to call the superclass version from the subclass or the spell will remain in the caster's active list.
dispel in interface Dispellabledispel in class Spellpublic void relinquishCamera(Player p)
public void timerExpired()
Timed
timerExpired in interface Timedpublic Command getCommand(CommandEvent event)
getCommand in interface CommandablegetCommand in class Spellevent - the event with the command to execute
public void createCommandList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||