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

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
All Implemented Interfaces:
Logic.ShapeObserver, TudeySceneManager.TickParticipant
Direct Known Subclasses:
HandlerLogic.BaseIntersectionCount, HandlerLogic.Intersection, HandlerLogic.IntersectionStart, HandlerLogic.IntersectionStop
Enclosing class:
HandlerLogic

public abstract static class HandlerLogic.BaseIntersection
extends HandlerLogic.Transition
implements Logic.ShapeObserver

Base class for the various intersection-related handler logic classes.


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  ShapeElement _shape
          The shape element in the sensor space.
protected  Transform2D _transform
          Holds the source 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.BaseIntersection(boolean start, boolean stop)
          Base intersection constructor.
 
Method Summary
 void shapeDidChange(Logic source)
          Notes that the logic's shape has changed.
 void shapeWillChange(Logic source)
          Notes that the logic's shape is about to change.
 void shutdown(int timestamp, Logic activator)
          Shuts down the handler.
 void startup(int timestamp)
          Starts up the handler.
 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.Transition
activate, tick
 
Methods inherited from class com.threerings.tudey.server.logic.HandlerLogic.ActionHandlerLogic
didInit, 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

_shape

protected ShapeElement _shape
The shape element in the sensor space.


_transform

protected Transform2D _transform
Holds the source transform.

Constructor Detail

HandlerLogic.BaseIntersection

public HandlerLogic.BaseIntersection(boolean start,
                                     boolean stop)
Base intersection constructor.

Method Detail

shapeWillChange

public void shapeWillChange(Logic source)
Description copied from interface: Logic.ShapeObserver
Notes that the logic's shape is about to change.

Specified by:
shapeWillChange in interface Logic.ShapeObserver

shapeDidChange

public void shapeDidChange(Logic source)
Description copied from interface: Logic.ShapeObserver
Notes that the logic's shape has changed.

Specified by:
shapeDidChange in interface Logic.ShapeObserver

startup

public void startup(int timestamp)
Description copied from class: HandlerLogic
Starts up the handler.

Overrides:
startup in class HandlerLogic

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.ActionHandlerLogic

shutdown

public void shutdown(int timestamp,
                     Logic activator)
Description copied from class: HandlerLogic
Shuts down the handler.

Overrides:
shutdown in class HandlerLogic.Transition