com.threerings.tudey.server.logic
Class BehaviorLogic.Random
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.Random
- Enclosing class:
- BehaviorLogic
public static class BehaviorLogic.Random
- extends BehaviorLogic.Evaluating
Handles the random behavior.
| 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 |
BehaviorLogic.Random
public BehaviorLogic.Random()
tick
public void tick(int timestamp)
- Description copied from class:
BehaviorLogic
- Ticks the behavior.
- Overrides:
tick in class BehaviorLogic.Evaluating
reachedTargetRotation
public void reachedTargetRotation()
- Description copied from class:
BehaviorLogic
- Notifies the behavior that the agent has reached its target rotation.
- Overrides:
reachedTargetRotation in class BehaviorLogic
penetratedEnvironment
public void penetratedEnvironment(Vector2f penetration)
- Description copied from class:
BehaviorLogic
- Notifies the behavior that the agent has penetrated its environment during advancement.
- Overrides:
penetratedEnvironment in class BehaviorLogic
- Parameters:
penetration - the sum penetration vector.
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.Evaluating
Copyright © 2011. All Rights Reserved.