com.threerings.tudey.server.logic
Class ScriptLogic.Condition
java.lang.Object
com.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.ScriptLogic
com.threerings.tudey.server.logic.ScriptLogic.Condition
- Enclosing class:
- ScriptLogic
public static class ScriptLogic.Condition
- extends ScriptLogic
Handles the condition script.
|
Method Summary |
void |
start(int timestamp)
Called when we are about to start the current script. |
boolean |
tick(int timestamp)
Ticks the script. |
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, getEntityKey, getModel, getPatrolPath, getRotation, getSceneManager, getShape, getTags, getTransform, getTransform, getTranslation, getVariable, init, isActive, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal |
ScriptLogic.Condition
public ScriptLogic.Condition()
start
public void start(int timestamp)
- Description copied from class:
ScriptLogic
- Called when we are about to start the current script.
- Overrides:
start in class ScriptLogic
tick
public boolean tick(int timestamp)
- Description copied from class:
ScriptLogic
- Ticks the script.
- Overrides:
tick in class ScriptLogic
- Returns:
- true if the script has completed
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.