com.threerings.tudey.config
Class EffectConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.tudey.config.EffectConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

public class EffectConfig
extends ParameterizedConfig

The configuration of an effect.


Nested Class Summary
static class EffectConfig.Derived
          A derived implementation.
static class EffectConfig.Implementation
          Contains the actual implementation of the effect.
static class EffectConfig.Original
          Superclass of the original implementations.
 
Field Summary
 EffectConfig.Implementation implementation
          The actual effect implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
EffectConfig()
           
 
Method Summary
 EffectSprite.Implementation createSpriteImplementation(TudeyContext ctx, Scope scope, Effect effect)
          Creates a sprite implementation for this configuration.
 EffectConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 
Methods inherited from class com.threerings.config.ParameterizedConfig
getInstance, getParameter, getReference, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName, updateFromSource
 
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

implementation

@Editable
public EffectConfig.Implementation implementation
The actual effect implementation.

Constructor Detail

EffectConfig

public EffectConfig()
Method Detail

getOriginal

public EffectConfig.Original getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation.


createSpriteImplementation

public EffectSprite.Implementation createSpriteImplementation(TudeyContext ctx,
                                                              Scope scope,
                                                              Effect effect)
Creates a sprite implementation for this configuration.

Parameters:
scope - the effect's expression scope.
Returns:
the created implementation, or null if no implementation could be created.


Copyright © 2011. All Rights Reserved.