All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.event.ActionEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----sso.event.ActionEvent

public class ActionEvent
extends EventObject
implements Cloneable
This represents some action taken by a player, NPC, or the environment that generates some kind of message. These are simply called "action events" and will be interpreted based on the originator and flags. Typically, these will be things like movement, talking, attacking, etc. These are generated by the GameObject, passed up to the immediate LOCATION, and from there they may propagate. ie--an attack originates with the attacker, includes the flag "attack" and the attack object, and gets passed to the attacker's location, a Tile. The Tile then passes the action event to it's neighbors, counting down the TTL (defined by the event type). Another example--a player speaks, includes the flag "talk" and the message String, and gets passed to the speaker's location and propagated from there. One final example--an alarm object in a bag generates a "talk" event and a message String, and passes it to the bag. The bag, if an ActionListener, will then decide to pass that to the holder or not.


Variable Index

 o APPEAR
 o ATTACK
 o CAST
 o CREATE
 o DESTROY
 o DIE
 o DISAPPEAR
 o DISARM
 o DODGE
 o EMOTE
 o GIVE
 o HEAL
 o HIDE
 o HURT
 o LIE
 o ORATE
 o ORDER
 o PICKLOCK
 o RUN
 o SEARCH
 o SHOUT
 o SIT
 o SLEEP
 o SNEAK
 o STAND
 o STEAL
 o TALK
 o UNKNOWN
 o WALK

Constructor Index

 o ActionEvent(GameObject, int, Object)

Method Index

 o clone()
 o getFlag()
 o getID()
 o setTTL(int)

Variables

 o UNKNOWN
 public static final int UNKNOWN
 o TALK
 public static final int TALK
 o EMOTE
 public static final int EMOTE
 o ORDER
 public static final int ORDER
 o SNEAK
 public static final int SNEAK
 o WALK
 public static final int WALK
 o RUN
 public static final int RUN
 o DIE
 public static final int DIE
 o DESTROY
 public static final int DESTROY
 o CREATE
 public static final int CREATE
 o DISAPPEAR
 public static final int DISAPPEAR
 o APPEAR
 public static final int APPEAR
 o ATTACK
 public static final int ATTACK
 o HURT
 public static final int HURT
 o HEAL
 public static final int HEAL
 o CAST
 public static final int CAST
 o DODGE
 public static final int DODGE
 o HIDE
 public static final int HIDE
 o SLEEP
 public static final int SLEEP
 o LIE
 public static final int LIE
 o SEARCH
 public static final int SEARCH
 o GIVE
 public static final int GIVE
 o STEAL
 public static final int STEAL
 o PICKLOCK
 public static final int PICKLOCK
 o DISARM
 public static final int DISARM
 o STAND
 public static final int STAND
 o SIT
 public static final int SIT
 o ORATE
 public static final int ORATE
 o SHOUT
 public static final int SHOUT

Constructors

 o ActionEvent
 public ActionEvent(GameObject source,
                    int flag,
                    Object contents)

Methods

 o clone
 public Object clone()
Overrides:
clone in class Object
 o getID
 public Integer getID()
 o getFlag
 public int getFlag()
 o setTTL
 public void setTTL(int ttl)

All Packages  Class Hierarchy  This Package  Previous  Next  Index