com.threerings.tudey.server.logic
Class BehaviorLogic.Scripted
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.Scripted
- Enclosing class:
- BehaviorLogic
public static class BehaviorLogic.Scripted
- extends BehaviorLogic
Handles the scripted behavior.
|
Method Summary |
void |
reachedTargetRotation()
Notifies the behavior that the agent has reached its target rotation. |
void |
setCurrentStep(int step,
int timestamp)
Sets the current step. |
void |
startup()
Starts up the behavior after initialization or suspension. |
void |
tick(int timestamp)
Ticks the behavior. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| 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.Scripted
public BehaviorLogic.Scripted()
setCurrentStep
public void setCurrentStep(int step,
int timestamp)
- Sets the current step.
tick
public void tick(int timestamp)
- Description copied from class:
BehaviorLogic
- Ticks the behavior.
- Overrides:
tick in class BehaviorLogic
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
startup
public void startup()
- Description copied from class:
BehaviorLogic
- Starts up the behavior after initialization or suspension.
- Overrides:
startup 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 Logic
Copyright © 2011. All Rights Reserved.