|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.HandlerLogic
public abstract class HandlerLogic
Handles the server-side processing for an event handler type.
| Nested Class Summary | |
|---|---|
protected static class |
HandlerLogic.ActionHandlerLogic
Base for action based handlers. |
static class |
HandlerLogic.ActorAdded
Handles an actor added event. |
static class |
HandlerLogic.ActorRemoved
Handles an actor removed event. |
static class |
HandlerLogic.BaseActorObserver
Base class for HandlerLogic.ActorAdded and HandlerLogic.ActorRemoved. |
static class |
HandlerLogic.BaseBodyObserver
Base class for HandlerLogic.BodyEntered and HandlerLogic.BodyLeft. |
static class |
HandlerLogic.BaseIntersection
Base class for the various intersection-related handler logic classes. |
static class |
HandlerLogic.BaseIntersectionCount
Handles the intersection count event. |
static class |
HandlerLogic.BodyEntered
Handles entering bodies. |
static class |
HandlerLogic.BodyLeft
Handles leaving bodies. |
static class |
HandlerLogic.Intersection
Handles the intersection event. |
static class |
HandlerLogic.IntersectionStart
Handles the intersection start event. |
static class |
HandlerLogic.IntersectionStop
Handles the intersection stop event. |
static class |
HandlerLogic.Reference
Handles the reference event. |
static class |
HandlerLogic.Request
Handles a client request event. |
static class |
HandlerLogic.Shutdown
Handles the shutdown event. |
static class |
HandlerLogic.Signal
Handles a signal event. |
static class |
HandlerLogic.SignalStart
Handles a signal start event. |
static class |
HandlerLogic.SignalStop
Handles a signal stop event. |
static class |
HandlerLogic.Startup
Handles the startup event. |
static class |
HandlerLogic.ThresholdIntersectionCount
Handles a threshold intersection count event. |
static class |
HandlerLogic.Tick
Handles the tick event. |
static class |
HandlerLogic.Timer
Handles the timer event. |
static class |
HandlerLogic.Transition
Base class for transition handlers. |
static class |
HandlerLogic.VariableChanged
Handles variable changes. |
static class |
HandlerLogic.WarnTimer
Handles the warn timer event. |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected HandlerConfig |
_config
The handler configuration. |
protected Logic |
_source
The action source. |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
HandlerLogic()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
EntityKey |
getEntityKey()
Returns the entity key for this logic, if any. |
float |
getRotation()
Returns the rotation of this logic for the purpose of spawning actors, etc. |
Vector2f |
getTranslation()
Returns the translation of this logic for the purpose of spawning actors, etc. |
void |
init(TudeySceneManager scenemgr,
HandlerConfig config,
Logic source)
Initializes the logic. |
boolean |
isActive()
Determines whether this logic object is still active in the scene. |
void |
removed()
Notes that the logic has been removed. |
void |
shutdown(int timestamp,
Logic activator)
Shuts down the handler. |
void |
startup(int timestamp)
Starts up the handler. |
void |
variableChanged(int timestamp,
Logic activator,
String name)
Notes that a variable has changed. |
protected void |
wasRemoved()
Override to perform custom cleanup. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal, transfer |
| Methods inherited from class com.threerings.util.ShallowObject |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HandlerConfig _config
protected Logic _source
| Constructor Detail |
|---|
public HandlerLogic()
| Method Detail |
|---|
public void init(TudeySceneManager scenemgr,
HandlerConfig config,
Logic source)
public void startup(int timestamp)
public void shutdown(int timestamp,
Logic activator)
public void variableChanged(int timestamp,
Logic activator,
String name)
public void removed()
public boolean isActive()
Logic
isActive in class Logicpublic EntityKey getEntityKey()
Logic
getEntityKey in class Logicpublic Vector2f getTranslation()
Logic
getTranslation in class Logicpublic float getRotation()
Logic
getRotation in class Logicprotected void didInit()
protected void wasRemoved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||