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

Variable Index

 o ARCHMAGE
 o ASLEEP
 o BLESSED
 o BLIND
 o BUFFED
 o BURNING
 o CATEYES
 o CRIMINAL
 o CURSED
 o DEAD
 o DEAF
 o DISEASED
 o effect_type
 o effectEndListeners
 o effectTriggerListeners
 o effectVictimChangeListeners
 o FLYING
 o FROZEN
 o GAGGED
 o GLOWING
 o GM
 o INSANE
 o INVISIBLE
 o INVULNERABLE
 o LYCANTHROPE
 o MURDERER
 o NOTHING
 o POISONED
 o POSSESSED
 o RESTING
 o SILENT
 o time_to_live
 o victims
 o WEAK

Constructor Index

 o Effect()
Constructor.

Method Index

 o addEffectEndListener(EffectEndListener)
Add an event ended listener.
 o addEffectTriggerListener(EffectTriggerListener)
Add an effect triggered listener.
 o addVictim(GameObject)
Adds an effect victim.
 o addVictimChangeListener(VictimChangeListener)
Add a victim changed listener.
 o createEffect()
Factory method for making a new instance of Effect.
 o createRows()
Creates the rows needed to store the effect.
 o effectEnd()
Fire an ended event.
 o effectTrigger()
Fire an effect triggered event.
 o getTimeToLive()
Gets the effect ttl
 o getType()
Gets the effect type.
 o getVictims()
Gets the list of effect victims.
 o init()
Initializer for factory method.
 o load()
Internals for loading effect.
 o loadEffect(int)
Load the Effect object.
 o removeEffectEndListener(EffectEndListener)
Remove an event ended listener.
 o removeEffectTriggerListener(EffectTriggerListener)
Remove an effect triggered listener.
 o removeVictim(GameObject)
Removes an effect victim.
 o removeVictimChangeListener(VictimChangeListener)
Remove a victim changed listener.
 o run()
Event loop.
 o setTimeToLive(int)
Sets the effect ttl.
 o setType(int)
Sets the effect type.
 o start()
Starts the effect.
 o stop()
Stops the effect.
 o store()
Save the effect object.
 o unregister()
Unregister the effect.
 o victimChange()
Fire a victim changed event.

Variables

 o time_to_live
 protected int time_to_live
 o effect_type
 protected int effect_type
 o victims
 protected Vector victims
 o effectTriggerListeners
 protected Vector effectTriggerListeners
 o effectVictimChangeListeners
 protected Vector effectVictimChangeListeners
 o effectEndListeners
 protected Vector effectEndListeners
 o NOTHING
 public static final int NOTHING
 o INVULNERABLE
 public static final int INVULNERABLE
 o INVISIBLE
 public static final int INVISIBLE
 o ARCHMAGE
 public static final int ARCHMAGE
 o CATEYES
 public static final int CATEYES
 o FLYING
 public static final int FLYING
 o BLIND
 public static final int BLIND
 o LYCANTHROPE
 public static final int LYCANTHROPE
 o ASLEEP
 public static final int ASLEEP
 o DEAD
 public static final int DEAD
 o CURSED
 public static final int CURSED
 o BLESSED
 public static final int BLESSED
 o POISONED
 public static final int POISONED
 o DISEASED
 public static final int DISEASED
 o RESTING
 public static final int RESTING
 o GLOWING
 public static final int GLOWING
 o DEAF
 public static final int DEAF
 o GAGGED
 public static final int GAGGED
 o FROZEN
 public static final int FROZEN
 o CRIMINAL
 public static final int CRIMINAL
 o MURDERER
 public static final int MURDERER
 o POSSESSED
 public static final int POSSESSED
 o GM
 public static final int GM
 o INSANE
 public static final int INSANE
 o WEAK
 public static final int WEAK
 o BUFFED
 public static final int BUFFED
 o SILENT
 public static final int SILENT
 o BURNING
 public static final int BURNING

Constructors

 o Effect
 public Effect()
Constructor. Should only be called by Factory methods.

Methods

 o createEffect
 public static Effect createEffect()
Factory method for making a new instance of Effect.

 o init
 public void init()
Initializer for factory method.

Overrides:
init in class Persistant
 o getTimeToLive
 public int getTimeToLive()
Gets the effect ttl

 o setTimeToLive
 public void setTimeToLive(int ttl)
Sets the effect ttl. Can be used to short circuit or extend an effect's duration.

 o getType
 public int getType()
Gets the effect type.

 o setType
 public void setType(int type)
Sets the effect type.

 o getVictims
 public Vector getVictims()
Gets the list of effect victims.

 o addVictim
 public void addVictim(GameObject victim)
Adds an effect victim.

 o removeVictim
 public void removeVictim(GameObject victim)
Removes an effect victim.

 o start
 public void start()
Starts the effect.

 o stop
 public void stop()
Stops the effect. SIDE EFFECT: sets time_to_live to 0

 o createRows
 protected void createRows()
Creates the rows needed to store the effect.

Overrides:
createRows in class Persistant
 o store
 public void store()
Save the effect object.

Overrides:
store in class Persistant
 o loadEffect
 public static Effect loadEffect(int id)
Load the Effect object.

 o load
 protected void load()
Internals for loading effect.

Overrides:
load in class Persistant
 o unregister
 public void unregister()
Unregister the effect.

Overrides:
unregister in class Persistant
 o run
 public void run()
Event loop.

 o addEffectTriggerListener
 public void addEffectTriggerListener(EffectTriggerListener el)
Add an effect triggered listener.

 o removeEffectTriggerListener
 public void removeEffectTriggerListener(EffectTriggerListener el)
Remove an effect triggered listener.

 o effectTrigger
 protected void effectTrigger()
Fire an effect triggered event.

 o addVictimChangeListener
 public void addVictimChangeListener(VictimChangeListener vl)
Add a victim changed listener.

 o removeVictimChangeListener
 public void removeVictimChangeListener(VictimChangeListener vl)
Remove a victim changed listener.

 o victimChange
 protected void victimChange()
Fire a victim changed event.

 o addEffectEndListener
 public void addEffectEndListener(EffectEndListener el)
Add an event ended listener.

 o removeEffectEndListener
 public void removeEffectEndListener(EffectEndListener el)
Remove an event ended listener.

 o effectEnd
 protected void effectEnd()
Fire an ended event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index