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

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
                  extended by com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
                      extended by com.threerings.tudey.server.logic.HandlerLogic.IntersectionStart
All Implemented Interfaces:
Logic.ShapeObserver, TudeySceneManager.IntersectionSensor, TudeySceneManager.Sensor, TudeySceneManager.TickParticipant
Enclosing class:
HandlerLogic

public static class HandlerLogic.IntersectionStart
extends HandlerLogic.BaseIntersection
implements TudeySceneManager.IntersectionSensor

Handles the intersection start event.


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.IntersectionStart()
          Creates a new intersection start handler.
 
Method Summary
 int getMask()
          Returns the sensor's bitmask.
 void trigger(int timestamp, ActorLogic actor)
          Triggers the sensor.
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.BaseIntersection
shapeDidChange, shapeWillChange, shutdown, startup, transfer
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.Transition
tick
 
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, 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.IntersectionStart

public HandlerLogic.IntersectionStart()
Creates a new intersection start handler.

Method Detail

getMask

public int getMask()
Description copied from interface: TudeySceneManager.Sensor
Returns the sensor's bitmask. Only triggers whose flags intersect the mask will activate the sensor.

Specified by:
getMask in interface TudeySceneManager.Sensor

trigger

public void trigger(int timestamp,
                    ActorLogic actor)
Description copied from interface: TudeySceneManager.Sensor
Triggers the sensor.

Specified by:
trigger in interface TudeySceneManager.Sensor
Parameters:
timestamp - the timestamp of the intersection.
actor - the logic object of the actor that triggered the sensor.


Copyright © 2011. All Rights Reserved.