com.threerings.tudey.server.logic
Class HandlerLogic.Tick
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.Tick
- All Implemented Interfaces:
- TudeySceneManager.TickParticipant
- Enclosing class:
- HandlerLogic
public static class HandlerLogic.Tick
- extends HandlerLogic
- implements TudeySceneManager.TickParticipant
Handles the tick event.
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.HandlerLogic |
HandlerLogic.ActorAdded, HandlerLogic.ActorRemoved, HandlerLogic.BaseActorObserver, HandlerLogic.BaseIntersection, HandlerLogic.BaseIntersectionCount, HandlerLogic.Intersection, HandlerLogic.IntersectionStart, HandlerLogic.IntersectionStop, 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 |
void |
shutdown(int timestamp,
Logic activator)
Shuts down the handler. |
void |
startup(int timestamp)
Starts up the handler. |
boolean |
tick(int timestamp)
Ticks the participant. |
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, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal |
HandlerLogic.Tick
public HandlerLogic.Tick()
tick
public boolean tick(int timestamp)
- Description copied from interface:
TudeySceneManager.TickParticipant
- Ticks the participant.
- Specified by:
tick in interface TudeySceneManager.TickParticipant
- Parameters:
timestamp - the timestamp of the current tick.
- Returns:
- true to continue ticking the participant, false to remove it from the list.
startup
public void startup(int timestamp)
- Description copied from class:
HandlerLogic
- Starts up the handler.
- Overrides:
startup 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
shutdown
public void shutdown(int timestamp,
Logic activator)
- Description copied from class:
HandlerLogic
- Shuts down the handler.
- Overrides:
shutdown in class HandlerLogic
Copyright © 2011. All Rights Reserved.