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

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.ActionHandlerLogic
                  extended by com.threerings.tudey.server.logic.HandlerLogic.Transition
                      extended by com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
                          extended by com.threerings.tudey.server.logic.HandlerLogic.BaseIntersectionCount
                              extended by 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 Class Summary
 
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
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
protected  ActionLogic _underAction
          The action to perform when we go under the threshold.
 
Fields inherited from class com.threerings.tudey.server.logic.HandlerLogic.BaseIntersectionCount
_condition, _lastCount
 
Fields inherited from class com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
_shape, _transform
 
Fields inherited from class com.threerings.tudey.server.logic.HandlerLogic.Transition
_activated, _added, _start, _stop
 
Fields inherited from class com.threerings.tudey.server.logic.HandlerLogic.ActionHandlerLogic
_action
 
Fields inherited from class com.threerings.tudey.server.logic.HandlerLogic
_config, _source
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
HandlerLogic.ThresholdIntersectionCount()
           
 
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.HandlerLogic.BaseIntersectionCount
getMask, tick, trigger
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
shapeDidChange, shapeWillChange, shutdown, startup
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.Transition
activate
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.ActionHandlerLogic
execute, execute, wasRemoved
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic
getEntityKey, getRotation, getTranslation, init, isActive, removed, variableChanged
 
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
 
Methods inherited from class com.threerings.util.ShallowObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_underAction

protected ActionLogic _underAction
The action to perform when we go under the threshold.

Constructor Detail

HandlerLogic.ThresholdIntersectionCount

public HandlerLogic.ThresholdIntersectionCount()
Method Detail

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