com.threerings.tudey.server.logic
Class HandlerLogic.ActionHandlerLogic
java.lang.Object
com.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.HandlerLogic
com.threerings.tudey.server.logic.HandlerLogic.ActionHandlerLogic
- Direct Known Subclasses:
- HandlerLogic.BaseActorObserver, HandlerLogic.BaseBodyObserver, HandlerLogic.Request, HandlerLogic.Shutdown, HandlerLogic.Signal, HandlerLogic.Startup, HandlerLogic.Tick, HandlerLogic.Timer, HandlerLogic.Transition, HandlerLogic.VariableChanged
- Enclosing class:
- HandlerLogic
protected static class HandlerLogic.ActionHandlerLogic
- extends HandlerLogic
Base for action based handlers.
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.HandlerLogic |
HandlerLogic.ActionHandlerLogic, HandlerLogic.ActorAdded, HandlerLogic.ActorRemoved, HandlerLogic.BaseActorObserver, HandlerLogic.BaseBodyObserver, HandlerLogic.BaseIntersection, HandlerLogic.BaseIntersectionCount, HandlerLogic.BodyEntered, HandlerLogic.BodyLeft, HandlerLogic.Intersection, HandlerLogic.IntersectionStart, HandlerLogic.IntersectionStop, HandlerLogic.Reference, HandlerLogic.Request, HandlerLogic.Shutdown, HandlerLogic.Signal, HandlerLogic.SignalStart, HandlerLogic.SignalStop, HandlerLogic.Startup, HandlerLogic.ThresholdIntersectionCount, HandlerLogic.Tick, HandlerLogic.Timer, HandlerLogic.Transition, HandlerLogic.VariableChanged, HandlerLogic.WarnTimer |
|
Field Summary |
protected ActionLogic |
_action
The action to execute in response to the event. |
|
Method Summary |
protected void |
didInit()
Override to perform custom initialization. |
protected void |
execute(int timestamp)
Executes the handler's action with the source as the activator. |
protected void |
execute(int timestamp,
Logic activator)
Executes the handler's action. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
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 |
_action
protected ActionLogic _action
- The action to execute in response to the event.
HandlerLogic.ActionHandlerLogic
protected HandlerLogic.ActionHandlerLogic()
transfer
public void transfer(Logic source,
Map<Object,Object> refs)
- Description copied from class:
Logic
- Transfers state from the specified source logic. Where relevant, this also takes the place
of addition/startup notification.
- Overrides:
transfer in class Logic
didInit
protected void didInit()
- Description copied from class:
HandlerLogic
- Override to perform custom initialization.
- Overrides:
didInit in class HandlerLogic
execute
protected void execute(int timestamp)
- Executes the handler's action with the source as the activator.
execute
protected void execute(int timestamp,
Logic activator)
- Executes the handler's action.
- Parameters:
activator - the entity that triggered the action.
wasRemoved
protected void wasRemoved()
- Description copied from class:
HandlerLogic
- Override to perform custom cleanup.
- Overrides:
wasRemoved in class HandlerLogic