com.threerings.tudey.server.logic
Class HandlerLogic.ThresholdIntersectionCount
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
com.threerings.tudey.server.logic.HandlerLogic.Transition
com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
com.threerings.tudey.server.logic.HandlerLogic.BaseIntersectionCount
com.threerings.tudey.server.logic.HandlerLogic.ThresholdIntersectionCount
- All Implemented Interfaces:
- Logic.ShapeObserver, TudeySceneManager.IntersectionSensor, TudeySceneManager.Sensor, TudeySceneManager.TickParticipant
- Enclosing class:
- HandlerLogic
public static class HandlerLogic.ThresholdIntersectionCount
- extends HandlerLogic.BaseIntersectionCount
Handles a threshold intersection count event.
| 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 |
|
Method Summary |
protected void |
countChanged(int timestamp,
int newCount)
Called when the intersection count changes. |
protected void |
didInit()
Override to perform custom initialization. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| 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 |
_underAction
protected ActionLogic _underAction
- The action to perform when we go under the threshold.
HandlerLogic.ThresholdIntersectionCount
public HandlerLogic.ThresholdIntersectionCount()
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 HandlerLogic.BaseIntersectionCount
didInit
protected void didInit()
- Description copied from class:
HandlerLogic
- Override to perform custom initialization.
- Overrides:
didInit in class HandlerLogic.BaseIntersectionCount
countChanged
protected void countChanged(int timestamp,
int newCount)
- Description copied from class:
HandlerLogic.BaseIntersectionCount
- Called when the intersection count changes.
- Specified by:
countChanged in class HandlerLogic.BaseIntersectionCount