|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.BehaviorLogic
com.threerings.tudey.server.logic.BehaviorLogic.Scripted
public static class BehaviorLogic.Scripted
Handles the scripted behavior.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
BehaviorLogic.Combined, BehaviorLogic.Evaluating, BehaviorLogic.Follow, BehaviorLogic.Idle, BehaviorLogic.PathCandidate, BehaviorLogic.Pathing, BehaviorLogic.Patrol, BehaviorLogic.Random, BehaviorLogic.Scripted, BehaviorLogic.Wander |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected int |
_currentStep
The current step. |
protected boolean |
_start
If we need to start the next step. |
protected ScriptLogic[] |
_steps
The script logics. |
| Fields inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
_agent, _config, MAX_FOLLOW_PATH_LENGTH |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
BehaviorLogic.Scripted()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
void |
reachedTargetRotation()
Notifies the behavior that the agent has reached its target rotation. |
void |
setCurrentStep(int step,
int timestamp)
Sets the current step. |
void |
shutdown()
Shuts down the behavior when the agent is destroyed. |
void |
startup()
Starts up the behavior after initialization or suspension. |
void |
suspend()
Suspends the behavior. |
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.BehaviorLogic |
|---|
getCurrentTarget, getEntityKey, getRotation, getTranslation, init, isActive, penetratedEnvironment |
| 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 |
|---|
protected ScriptLogic[] _steps
protected int _currentStep
protected boolean _start
| Constructor Detail |
|---|
public BehaviorLogic.Scripted()
| Method Detail |
|---|
public void setCurrentStep(int step,
int timestamp)
public void tick(int timestamp)
BehaviorLogic
tick in class BehaviorLogicpublic void reachedTargetRotation()
BehaviorLogic
reachedTargetRotation in class BehaviorLogicpublic void startup()
BehaviorLogic
startup in class BehaviorLogicpublic void suspend()
BehaviorLogic
suspend in class BehaviorLogicpublic void shutdown()
BehaviorLogic
shutdown in class BehaviorLogic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logicprotected void didInit()
BehaviorLogic
didInit in class BehaviorLogic
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||