|
||||||||||
| 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.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.Wait
Handles a wait script. |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Constructor Summary | |
|---|---|
ScriptLogic()
|
|
| Method Summary | |
|---|---|
static ScriptLogic |
createScriptLogic(TudeySceneManager scenemgr,
ScriptConfig config,
AgentLogic agent,
BehaviorLogic.Scripted scripted)
Creates a script logic. |
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 |
start(int timestamp)
Called when we are about to start the current script. |
boolean |
tick(int timestamp)
Ticks the script. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, 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 |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| 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 reachedTargetRotation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||