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.
-
APPEAR
-
-
ATTACK
-
-
CAST
-
-
CREATE
-
-
DESTROY
-
-
DIE
-
-
DISAPPEAR
-
-
DISARM
-
-
DODGE
-
-
EMOTE
-
-
GIVE
-
-
HEAL
-
-
HIDE
-
-
HURT
-
-
LIE
-
-
ORATE
-
-
ORDER
-
-
PICKLOCK
-
-
RUN
-
-
SEARCH
-
-
SHOUT
-
-
SIT
-
-
SLEEP
-
-
SNEAK
-
-
STAND
-
-
STEAL
-
-
TALK
-
-
UNKNOWN
-
-
WALK
-
-
ActionEvent(GameObject, int, Object)
-
-
clone()
-
-
getFlag()
-
-
getID()
-
-
setTTL(int)
-
UNKNOWN
public static final int UNKNOWN
TALK
public static final int TALK
EMOTE
public static final int EMOTE
ORDER
public static final int ORDER
SNEAK
public static final int SNEAK
WALK
public static final int WALK
RUN
public static final int RUN
DIE
public static final int DIE
DESTROY
public static final int DESTROY
CREATE
public static final int CREATE
DISAPPEAR
public static final int DISAPPEAR
APPEAR
public static final int APPEAR
ATTACK
public static final int ATTACK
HURT
public static final int HURT
HEAL
public static final int HEAL
CAST
public static final int CAST
DODGE
public static final int DODGE
HIDE
public static final int HIDE
SLEEP
public static final int SLEEP
LIE
public static final int LIE
SEARCH
public static final int SEARCH
GIVE
public static final int GIVE
STEAL
public static final int STEAL
PICKLOCK
public static final int PICKLOCK
DISARM
public static final int DISARM
STAND
public static final int STAND
SIT
public static final int SIT
ORATE
public static final int ORATE
SHOUT
public static final int SHOUT
ActionEvent
public ActionEvent(GameObject source,
int flag,
Object contents)
clone
public Object clone()
- Overrides:
- clone in class Object
getID
public Integer getID()
getFlag
public int getFlag()
setTTL
public void setTTL(int ttl)
All Packages Class Hierarchy This Package Previous Next Index