com.threerings.tudey.server.logic
Class BehaviorLogic.Follow
java.lang.Object
com.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.BehaviorLogic
com.threerings.tudey.server.logic.BehaviorLogic.Evaluating
com.threerings.tudey.server.logic.BehaviorLogic.Pathing
com.threerings.tudey.server.logic.BehaviorLogic.Follow
- Enclosing class:
- BehaviorLogic
public static class BehaviorLogic.Follow
- extends BehaviorLogic.Pathing
Handles the follow behavior.
| 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 |
_target
protected TargetLogic _target
- The target to follow.
_targets
protected ArrayList<Logic> _targets
- Holds targets during processing.
_currentTarget
protected Logic _currentTarget
- The current target.
BehaviorLogic.Follow
public BehaviorLogic.Follow()
getCurrentTarget
public Logic getCurrentTarget()
- Description copied from class:
BehaviorLogic
- Returns the currently targeted logic, if any.
- Overrides:
getCurrentTarget in class BehaviorLogic
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 BehaviorLogic.Pathing
didInit
protected void didInit()
- Description copied from class:
BehaviorLogic
- Override to perform custom initialization.
- Overrides:
didInit in class BehaviorLogic
evaluate
protected void evaluate()
- Description copied from class:
BehaviorLogic.Evaluating
- Performs an evaluation. Default implementation simply schedules the next evaluation.
- Overrides:
evaluate in class BehaviorLogic.Evaluating