|
||||||||||
| 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 | |
|---|---|
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.BaseIntersection
Base class for the various intersection-related handler logic classes. |
static class |
HandlerLogic.BaseIntersectionCount
Handles the intersection count event. |
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.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 |
| Constructor Summary | |
|---|---|
HandlerLogic()
|
|
| Method Summary | |
|---|---|
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 |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
void |
variableChanged(int timestamp,
Logic activator,
String name)
Notes that a variable has changed. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal |
| Methods inherited from class com.threerings.util.ShallowObject |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| 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 Logic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||