com.threerings.tudey.server.logic
Class ActionLogic.SpawnRandomTranslatedActor

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.ActionLogic
              extended by com.threerings.tudey.server.logic.ActionLogic.SpawnActor
                  extended by com.threerings.tudey.server.logic.ActionLogic.SpawnRandomTranslatedActor
Enclosing class:
ActionLogic

public static class ActionLogic.SpawnRandomTranslatedActor
extends ActionLogic.SpawnActor

Handles a spawn random translated actor action.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.ActionLogic
ActionLogic.AbstractMove, ActionLogic.Compound, ActionLogic.Conditional, ActionLogic.Delayed, ActionLogic.DestroyActor, ActionLogic.ExpressionSwitch, ActionLogic.FireEffect, ActionLogic.ForceClientAction, ActionLogic.MoveAll, ActionLogic.MoveBody, ActionLogic.Random, ActionLogic.RotateActor, ActionLogic.SetFlag, ActionLogic.SetVariable, ActionLogic.Signal, ActionLogic.SpawnActor, ActionLogic.SpawnRandomTranslatedActor, ActionLogic.SpawnRotatedActor, ActionLogic.SpawnTransformedActor, ActionLogic.StepLimitMobile, ActionLogic.Switch, ActionLogic.Targeted, ActionLogic.TargetedAction, ActionLogic.WarpActor, ActionLogic.WarpTransformedActor
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
protected  TargetLogic _cs
          The collision source.
protected static int COLLISION_ATTEMPTS
          The number of failed collision attempts before continuing.
 
Fields inherited from class com.threerings.tudey.server.logic.ActionLogic.SpawnActor
_location
 
Fields inherited from class com.threerings.tudey.server.logic.ActionLogic
_config, _source, _targets
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
ActionLogic.SpawnRandomTranslatedActor()
           
 
Method Summary
protected  void didInit()
          Override to perform custom initialization.
protected  boolean spawnActor(int timestamp, ConfigReference<ActorConfig> actor, Logic target, Logic activator)
          Spawns an actor at the target
 
Methods inherited from class com.threerings.tudey.server.logic.ActionLogic.SpawnActor
execute, getActorConfig, getRotation, getTranslation, initLogic, transfer
 
Methods inherited from class com.threerings.tudey.server.logic.ActionLogic
getEntityKey, getRotation, getTranslation, init, isActive, removed, shouldExecute, wasRemoved
 
Methods inherited from class com.threerings.tudey.server.logic.Logic
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, 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

_cs

protected TargetLogic _cs
The collision source.


COLLISION_ATTEMPTS

protected static final int COLLISION_ATTEMPTS
The number of failed collision attempts before continuing.

See Also:
Constant Field Values
Constructor Detail

ActionLogic.SpawnRandomTranslatedActor

public ActionLogic.SpawnRandomTranslatedActor()
Method Detail

spawnActor

protected boolean spawnActor(int timestamp,
                             ConfigReference<ActorConfig> actor,
                             Logic target,
                             Logic activator)
Description copied from class: ActionLogic.SpawnActor
Spawns an actor at the target

Overrides:
spawnActor in class ActionLogic.SpawnActor

didInit

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

Overrides:
didInit in class ActionLogic.SpawnActor