|
|||||||||
| 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.ScriptLogic
public abstract class ScriptLogic
Performs script step logic for a scripted behavior.
| Nested Class Summary | |
|---|---|
static class |
ScriptLogic.Action
Handles an action script. |
static class |
ScriptLogic.ClearSpeed
Handles the clear speed script. |
static class |
ScriptLogic.Condition
Handles the condition script. |
static class |
ScriptLogic.Goto
Handles the goto script. |
static class |
ScriptLogic.Move
Handles a move script. |
static class |
ScriptLogic.Rotate
Handles the rotate script. |
static class |
ScriptLogic.SetSpeed
Handles the set speed script. |
static class |
ScriptLogic.Wait
Handles a wait script. |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected AgentLogic |
_agent
The controlled agent. |
protected ScriptConfig |
_config
Our configuration. |
protected BehaviorLogic.Scripted |
_scripted
The scripted logic. |
protected static float |
MAX_PATH_LENGTH
The maximum path length for a move. |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
ScriptLogic()
|
|
| Method Summary | |
|---|---|
static ScriptLogic |
createScriptLogic(TudeySceneManager scenemgr,
ScriptConfig config,
AgentLogic agent,
BehaviorLogic.Scripted scripted)
Creates a script logic. |
protected void |
didInit()
Override to perform custom initialization. |
void |
init(TudeySceneManager scenemgr,
ScriptConfig config,
AgentLogic agent,
BehaviorLogic.Scripted scripted)
Initializes the logic. |
void |
reachedTargetRotation()
Called when the agent reached its target rotation. |
void |
shutdown()
Called when the behavior is shutdown. |
void |
start(int timestamp)
Called when we are about to start the current script. |
void |
suspend()
Called when we are suspending the current script. |
boolean |
tick(int timestamp)
Ticks the script. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getEntityKey, getModel, getPatrolPath, getRotation, getSceneManager, getShape, getTags, getTransform, getTransform, getTranslation, getVariable, init, isActive, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal, transfer |
| 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 ScriptConfig _config
protected AgentLogic _agent
protected BehaviorLogic.Scripted _scripted
protected static final float MAX_PATH_LENGTH
| Constructor Detail |
|---|
public ScriptLogic()
| Method Detail |
|---|
public static ScriptLogic createScriptLogic(TudeySceneManager scenemgr,
ScriptConfig config,
AgentLogic agent,
BehaviorLogic.Scripted scripted)
public void init(TudeySceneManager scenemgr,
ScriptConfig config,
AgentLogic agent,
BehaviorLogic.Scripted scripted)
public boolean tick(int timestamp)
public void start(int timestamp)
public void suspend()
public void shutdown()
public void reachedTargetRotation()
protected void didInit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||