com.threerings.tudey.server.logic
Class HandlerLogic.Transition

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.HandlerLogic
              extended by 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 Class Summary
 
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
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Constructor Summary
HandlerLogic.Transition(boolean start, boolean stop)
          Creates a new transition handler.
 
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.HandlerLogic
getEntityKey, getRotation, getTranslation, init, isActive, removed, startup, transfer, variableChanged
 
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
 
Methods inherited from class com.threerings.util.ShallowObject
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.