com.threerings.tudey.server.logic
Class RegionLogic.Located

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.RegionLogic
              extended by com.threerings.tudey.server.logic.RegionLogic.Located
Direct Known Subclasses:
RegionLogic.Default, RegionLogic.Transformed
Enclosing class:
RegionLogic

public abstract static class RegionLogic.Located
extends RegionLogic

Base class for located regions.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.RegionLogic
RegionLogic.Default, RegionLogic.Fixed, RegionLogic.Located, RegionLogic.Transformed
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
protected  TargetLogic _location
          The region location.
protected  ArrayList<Logic> _locations
          Holds the locations during processing.
 
Fields inherited from class com.threerings.tudey.server.logic.RegionLogic
_config, _source
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
RegionLogic.Located()
           
 
Method Summary
protected  void didInit()
          Override to perform custom initialization.
protected abstract  void getShapes(Collection<Shape> results)
          Updates the shapes based on the targets.
 void resolve(Logic activator, Collection<Shape> results)
          Resolves the region into a collection of shapes.
 void transfer(Logic source, Map<Object,Object> refs)
          Transfers state from the specified source logic.
 
Methods inherited from class com.threerings.tudey.server.logic.RegionLogic
getEntityKey, getRotation, getTranslation, init, isActive
 
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

_location

protected TargetLogic _location
The region location.


_locations

protected ArrayList<Logic> _locations
Holds the locations during processing.

Constructor Detail

RegionLogic.Located

public RegionLogic.Located()
Method Detail

resolve

public void resolve(Logic activator,
                    Collection<Shape> results)
Description copied from class: RegionLogic
Resolves the region into a collection of shapes.

Specified by:
resolve in class RegionLogic

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 Logic

didInit

protected void didInit()
Description copied from class: RegionLogic
Override to perform custom initialization.

Overrides:
didInit in class RegionLogic

getShapes

protected abstract void getShapes(Collection<Shape> results)
Updates the shapes based on the targets.