com.threerings.tudey.server
Interface TudeySceneManager.Sensor

All Known Subinterfaces:
TudeySceneManager.IntersectionSensor
All Known Implementing Classes:
HandlerLogic.BaseIntersectionCount, HandlerLogic.Intersection, HandlerLogic.IntersectionStart, HandlerLogic.IntersectionStop, HandlerLogic.ThresholdIntersectionCount
Enclosing class:
TudeySceneManager

public static interface TudeySceneManager.Sensor

Base interface for sensors.


Method Summary
 int getMask()
          Returns the sensor's bitmask.
 void trigger(int timestamp, ActorLogic actor)
          Triggers the sensor.
 

Method Detail

getMask

int getMask()
Returns the sensor's bitmask. Only triggers whose flags intersect the mask will activate the sensor.


trigger

void trigger(int timestamp,
             ActorLogic actor)
Triggers the sensor.

Parameters:
timestamp - the timestamp of the intersection.
actor - the logic object of the actor that triggered the sensor.


Copyright © 2011. All Rights Reserved.