com.threerings.tudey.server.logic
Class HandlerLogic.Transition
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.Transition
- All Implemented Interfaces:
- TudeySceneManager.TickParticipant
- Direct Known Subclasses:
- HandlerLogic.BaseIntersection, HandlerLogic.SignalStart, HandlerLogic.SignalStop
- Enclosing class:
- HandlerLogic
public abstract static class HandlerLogic.Transition
- extends HandlerLogic
- implements TudeySceneManager.TickParticipant
Base class for transition handlers.
| 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. |
boolean |
tick(int timestamp)
Ticks the participant. |
| 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.Transition
public HandlerLogic.Transition(boolean start,
boolean stop)
- Creates a new transition handler.
- Parameters:
start - if true, execute the action on activation start.stop - if true, execute the action on activation stop.
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.
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.