com.threerings.tudey.config
Class ActionConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ActionConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
ActionConfig.AbstractMove, ActionConfig.Compound, ActionConfig.Conditional, ActionConfig.Delayed, ActionConfig.DestroyActor, ActionConfig.ExpressionSwitch, ActionConfig.FireEffect, ActionConfig.ForceClientAction, ActionConfig.Random, ActionConfig.SetFlag, ActionConfig.SetVariable, ActionConfig.Signal, ActionConfig.SpawnActor, ActionConfig.StepLimitMobile, ActionConfig.Switch, ActionConfig.WarpActor

@EditorTypes(value={ActionConfig.SpawnActor.class,ActionConfig.SpawnRotatedActor.class,ActionConfig.SpawnTransformedActor.class,ActionConfig.SpawnRandomTranslatedActor.class,ActionConfig.DestroyActor.class,ActionConfig.WarpActor.class,ActionConfig.WarpTransformedActor.class,ActionConfig.FireEffect.class,ActionConfig.Signal.class,ActionConfig.MoveBody.class,ActionConfig.MoveAll.class,ActionConfig.Conditional.class,ActionConfig.Switch.class,ActionConfig.ExpressionSwitch.class,ActionConfig.Compound.class,ActionConfig.Random.class,ActionConfig.Delayed.class,ActionConfig.StepLimitMobile.class,ActionConfig.SetVariable.class,ActionConfig.SetFlag.class,ActionConfig.ForceClientAction.class})
public abstract class ActionConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Configurations for server-side actions.


Nested Class Summary
static class ActionConfig.AbstractMove
          Superclass of the portal actions.
static class ActionConfig.Case
          A switch case.
static class ActionConfig.Compound
          Executes multiple actions simultaneously.
static class ActionConfig.Conditional
          Executes a sub-action if a condition is satisfied.
static class ActionConfig.Delayed
          Executes an action after some delay.
static class ActionConfig.DestroyActor
          Destroys an actor.
static class ActionConfig.EntryPortal
          A (non-tile) scene model entry portal identified by its entry id.
static class ActionConfig.ExpressionCase
          A switch case.
static class ActionConfig.ExpressionSwitch
          Executes the first case whose value equals the switch value.
static class ActionConfig.FireEffect
          Fires an effect.
static class ActionConfig.ForceClientAction
          Forces the client associated with the target to do something.
static class ActionConfig.MoveAll
          Moves all players to a new scene.
static class ActionConfig.MoveBody
          Moves a player pawn to a new scene.
static class ActionConfig.Portal
          Identifies a portal within the target scene.
static interface ActionConfig.PreExecutable
          Interface for actions that require pre-execution on the owning client.
static class ActionConfig.Random
          Executes an action from a weighted list.
static class ActionConfig.SetFlag
          Sets a flag on the target.
static class ActionConfig.SetVariable
          Sets a variable on the target.
static class ActionConfig.Signal
          Transmits a signal.
static class ActionConfig.SpawnActor
          Spawns a new actor.
static class ActionConfig.SpawnRandomTranslatedActor
          Spawns a number of actors randomly translated from the location.
static class ActionConfig.SpawnRotatedActor
          Spawns a new actor with a fixed rotation.
static class ActionConfig.SpawnTransformedActor
          Spawns a new actor that can have a translation and rotation.
static class ActionConfig.StepLimitMobile
          Sets a step limiter on mobile.
static class ActionConfig.Switch
          Executes the first sub-action with a satisfied condition.
static class ActionConfig.TaggedPortal
          A portal identified by its tag.
static class ActionConfig.TilePortal
          A tile portal identified by its coordinates.
static class ActionConfig.WarpActor
          Warps an actor from one place to another.
static class ActionConfig.WarpTransformedActor
          Warps an actor from on place to another transformed location.
static class ActionConfig.WeightedAction
          Combines an action with a weight.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ActionConfig()
           
 
Method Summary
abstract  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.
 
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
 

Constructor Detail

ActionConfig

public ActionConfig()
Method Detail

getLogicClassName

public abstract String getLogicClassName()
Returns the name of the server-side logic class for this action.


getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Adds the resources to preload for this action into the provided set.


invalidate

public void invalidate()
Invalidates any cached data.


getSubActions

public ActionConfig[] getSubActions()
Returns an array of any contained ActionConfigs.



Copyright © 2011. All Rights Reserved.