com.threerings.tudey.config
Class ActionConfig.Compound

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ActionConfig
          extended by com.threerings.tudey.config.ActionConfig.Compound
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, ActionConfig.PreExecutable, Copyable, Cloneable
Enclosing class:
ActionConfig

public static class ActionConfig.Compound
extends ActionConfig
implements ActionConfig.PreExecutable

Executes multiple actions simultaneously.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.config.ActionConfig
ActionConfig.AbstractMove, ActionConfig.Case, ActionConfig.Compound, ActionConfig.Conditional, ActionConfig.Delayed, ActionConfig.DestroyActor, ActionConfig.EntryPortal, ActionConfig.ExpressionCase, ActionConfig.ExpressionSwitch, ActionConfig.FireEffect, ActionConfig.ForceClientAction, ActionConfig.MoveAll, ActionConfig.MoveBody, ActionConfig.Portal, ActionConfig.PreExecutable, ActionConfig.Random, ActionConfig.SetFlag, ActionConfig.SetVariable, ActionConfig.Signal, ActionConfig.SpawnActor, ActionConfig.SpawnRandomTranslatedActor, ActionConfig.SpawnRotatedActor, ActionConfig.SpawnTransformedActor, ActionConfig.StepLimitMobile, ActionConfig.Switch, ActionConfig.TaggedPortal, ActionConfig.TilePortal, ActionConfig.WarpActor, ActionConfig.WarpTransformedActor, ActionConfig.WeightedAction
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 ActionConfig[] actions
          The actions to execute.
 boolean stopOnFailure
          If we should stop executing actions if one fails.
 
Constructor Summary
ActionConfig.Compound()
           
 
Method Summary
 String getLogicClassName()
          Returns the name of the server-side logic class for this action.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this action into the provided set.
 ActionConfig[] getSubActions()
          Returns an array of any contained ActionConfigs.
 void invalidate()
          Invalidates any cached data.
 void preExecute(TudeySceneView view, ActorSprite sprite, int timestamp)
          Pre-executes the action on the owning client.
 boolean shouldPreExecute()
          Checks whether we should pre-execute this action on the owning client.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

actions

@Editable
public ActionConfig[] actions
The actions to execute.


stopOnFailure

@Editable
public boolean stopOnFailure
If we should stop executing actions if one fails.

Constructor Detail

ActionConfig.Compound

public ActionConfig.Compound()
Method Detail

shouldPreExecute

public boolean shouldPreExecute()
Description copied from interface: ActionConfig.PreExecutable
Checks whether we should pre-execute this action on the owning client.

Specified by:
shouldPreExecute in interface ActionConfig.PreExecutable

preExecute

public void preExecute(TudeySceneView view,
                       ActorSprite sprite,
                       int timestamp)
Description copied from interface: ActionConfig.PreExecutable
Pre-executes the action on the owning client.

Specified by:
preExecute in interface ActionConfig.PreExecutable

getLogicClassName

public String getLogicClassName()
Description copied from class: ActionConfig
Returns the name of the server-side logic class for this action.

Specified by:
getLogicClassName in class ActionConfig

getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Description copied from class: ActionConfig
Adds the resources to preload for this action into the provided set.

Overrides:
getPreloads in class ActionConfig

invalidate

public void invalidate()
Description copied from class: ActionConfig
Invalidates any cached data.

Overrides:
invalidate in class ActionConfig

getSubActions

public ActionConfig[] getSubActions()
Description copied from class: ActionConfig
Returns an array of any contained ActionConfigs.

Overrides:
getSubActions in class ActionConfig


Copyright © 2011. All Rights Reserved.