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

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.Rotate
Enclosing class:
ScriptLogic

public static class ScriptLogic.Rotate
extends ScriptLogic

Handles the rotate 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  boolean _complete
          If we're done.
 
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.Rotate()
           
 
Method Summary
 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.
 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, didInit, init, 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

_complete

protected boolean _complete
If we're done.

Constructor Detail

ScriptLogic.Rotate

public ScriptLogic.Rotate()
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

reachedTargetRotation

public void reachedTargetRotation()
Description copied from class: ScriptLogic
Called when the agent reached its target rotation.

Overrides:
reachedTargetRotation 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