All Packages Class Hierarchy This Package Previous Next Index
Class sso.Effect
java.lang.Object
|
+----sso.Persistant
|
+----sso.Effect
- public class Effect
- extends Persistant
- implements Runnable
-
ARCHMAGE
-
-
ASLEEP
-
-
BLESSED
-
-
BLIND
-
-
BUFFED
-
-
BURNING
-
-
CATEYES
-
-
CRIMINAL
-
-
CURSED
-
-
DEAD
-
-
DEAF
-
-
DISEASED
-
-
effect_type
-
-
effectEndListeners
-
-
effectTriggerListeners
-
-
effectVictimChangeListeners
-
-
FLYING
-
-
FROZEN
-
-
GAGGED
-
-
GLOWING
-
-
GM
-
-
INSANE
-
-
INVISIBLE
-
-
INVULNERABLE
-
-
LYCANTHROPE
-
-
MURDERER
-
-
NOTHING
-
-
POISONED
-
-
POSSESSED
-
-
RESTING
-
-
SILENT
-
-
time_to_live
-
-
victims
-
-
WEAK
-
-
Effect()
- Constructor.
-
addEffectEndListener(EffectEndListener)
- Add an event ended listener.
-
addEffectTriggerListener(EffectTriggerListener)
- Add an effect triggered listener.
-
addVictim(GameObject)
- Adds an effect victim.
-
addVictimChangeListener(VictimChangeListener)
- Add a victim changed listener.
-
createEffect()
- Factory method for making a new instance of Effect.
-
createRows()
- Creates the rows needed to store the effect.
-
effectEnd()
- Fire an ended event.
-
effectTrigger()
- Fire an effect triggered event.
-
getTimeToLive()
- Gets the effect ttl
-
getType()
- Gets the effect type.
-
getVictims()
- Gets the list of effect victims.
-
init()
- Initializer for factory method.
-
load()
- Internals for loading effect.
-
loadEffect(int)
- Load the Effect object.
-
removeEffectEndListener(EffectEndListener)
- Remove an event ended listener.
-
removeEffectTriggerListener(EffectTriggerListener)
- Remove an effect triggered listener.
-
removeVictim(GameObject)
- Removes an effect victim.
-
removeVictimChangeListener(VictimChangeListener)
- Remove a victim changed listener.
-
run()
- Event loop.
-
setTimeToLive(int)
- Sets the effect ttl.
-
setType(int)
- Sets the effect type.
-
start()
- Starts the effect.
-
stop()
- Stops the effect.
-
store()
- Save the effect object.
-
unregister()
- Unregister the effect.
-
victimChange()
- Fire a victim changed event.
time_to_live
protected int time_to_live
effect_type
protected int effect_type
victims
protected Vector victims
effectTriggerListeners
protected Vector effectTriggerListeners
effectVictimChangeListeners
protected Vector effectVictimChangeListeners
effectEndListeners
protected Vector effectEndListeners
NOTHING
public static final int NOTHING
INVULNERABLE
public static final int INVULNERABLE
INVISIBLE
public static final int INVISIBLE
ARCHMAGE
public static final int ARCHMAGE
CATEYES
public static final int CATEYES
FLYING
public static final int FLYING
BLIND
public static final int BLIND
LYCANTHROPE
public static final int LYCANTHROPE
ASLEEP
public static final int ASLEEP
DEAD
public static final int DEAD
CURSED
public static final int CURSED
BLESSED
public static final int BLESSED
POISONED
public static final int POISONED
DISEASED
public static final int DISEASED
RESTING
public static final int RESTING
GLOWING
public static final int GLOWING
DEAF
public static final int DEAF
GAGGED
public static final int GAGGED
FROZEN
public static final int FROZEN
CRIMINAL
public static final int CRIMINAL
MURDERER
public static final int MURDERER
POSSESSED
public static final int POSSESSED
GM
public static final int GM
INSANE
public static final int INSANE
WEAK
public static final int WEAK
BUFFED
public static final int BUFFED
SILENT
public static final int SILENT
BURNING
public static final int BURNING
Effect
public Effect()
- Constructor. Should only be called by Factory methods.
createEffect
public static Effect createEffect()
- Factory method for making a new instance of Effect.
init
public void init()
- Initializer for factory method.
- Overrides:
- init in class Persistant
getTimeToLive
public int getTimeToLive()
- Gets the effect ttl
setTimeToLive
public void setTimeToLive(int ttl)
- Sets the effect ttl.
Can be used to short circuit or extend an effect's duration.
getType
public int getType()
- Gets the effect type.
setType
public void setType(int type)
- Sets the effect type.
getVictims
public Vector getVictims()
- Gets the list of effect victims.
addVictim
public void addVictim(GameObject victim)
- Adds an effect victim.
removeVictim
public void removeVictim(GameObject victim)
- Removes an effect victim.
start
public void start()
- Starts the effect.
stop
public void stop()
- Stops the effect.
SIDE EFFECT: sets time_to_live to 0
createRows
protected void createRows()
- Creates the rows needed to store the effect.
- Overrides:
- createRows in class Persistant
store
public void store()
- Save the effect object.
- Overrides:
- store in class Persistant
loadEffect
public static Effect loadEffect(int id)
- Load the Effect object.
load
protected void load()
- Internals for loading effect.
- Overrides:
- load in class Persistant
unregister
public void unregister()
- Unregister the effect.
- Overrides:
- unregister in class Persistant
run
public void run()
- Event loop.
addEffectTriggerListener
public void addEffectTriggerListener(EffectTriggerListener el)
- Add an effect triggered listener.
removeEffectTriggerListener
public void removeEffectTriggerListener(EffectTriggerListener el)
- Remove an effect triggered listener.
effectTrigger
protected void effectTrigger()
- Fire an effect triggered event.
addVictimChangeListener
public void addVictimChangeListener(VictimChangeListener vl)
- Add a victim changed listener.
removeVictimChangeListener
public void removeVictimChangeListener(VictimChangeListener vl)
- Remove a victim changed listener.
victimChange
protected void victimChange()
- Fire a victim changed event.
addEffectEndListener
public void addEffectEndListener(EffectEndListener el)
- Add an event ended listener.
removeEffectEndListener
public void removeEffectEndListener(EffectEndListener el)
- Remove an event ended listener.
effectEnd
protected void effectEnd()
- Fire an ended event.
All Packages Class Hierarchy This Package Previous Next Index