com.threerings.tudey.server.logic
Class ScriptLogic.Condition

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.ScriptLogic
              extended by com.threerings.tudey.server.logic.ScriptLogic.Condition
Enclosing class:
ScriptLogic

public static class ScriptLogic.Condition
extends ScriptLogic

Handles the condition script.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.ScriptLogic
ScriptLogic.Action, ScriptLogic.ClearSpeed, ScriptLogic.Condition, ScriptLogic.Goto, ScriptLogic.Move, ScriptLogic.Rotate, ScriptLogic.SetSpeed, ScriptLogic.Wait
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
protected  ConditionLogic _condition
          The condition to evaluate.
 
Fields inherited from class com.threerings.tudey.server.logic.ScriptLogic
_agent, _config, _scripted, MAX_PATH_LENGTH
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
ScriptLogic.Condition()
           
 
Method Summary
protected  void didInit()
          Override to perform custom initialization.
 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.ScriptLogic
createScriptLogic, init, reachedTargetRotation, shutdown, suspend
 
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
 
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

_condition

protected ConditionLogic _condition
The condition to evaluate.

Constructor Detail

ScriptLogic.Condition

public ScriptLogic.Condition()
Method Detail

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

didInit

protected void didInit()
Description copied from class: ScriptLogic
Override to perform custom initialization.

Overrides:
didInit in class ScriptLogic