com.threerings.tudey.server.logic
Class HandlerLogic.Timer
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.Timer
- Direct Known Subclasses:
- HandlerLogic.WarnTimer
- Enclosing class:
- HandlerLogic
public static class HandlerLogic.Timer
- extends HandlerLogic.ActionHandlerLogic
Handles the timer 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 |
|
Field Summary |
protected Interval |
_interval
The timer interval. |
protected int |
_limit
The number of times remaining to fire. |
| 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 |
_limit
protected int _limit
- The number of times remaining to fire.
_interval
protected Interval _interval
- The timer interval.
HandlerLogic.Timer
public HandlerLogic.Timer()
startup
public void startup(int timestamp)
- Description copied from class:
HandlerLogic
- Starts up the handler.
- Overrides:
startup in class HandlerLogic
shutdown
public void shutdown(int timestamp,
Logic activator)
- Description copied from class:
HandlerLogic
- Shuts down the handler.
- Overrides:
shutdown in class HandlerLogic
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.ActionHandlerLogic