com.threerings.tudey.config
Class EffectConfig.Implementation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.EffectConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
EffectConfig.Derived, EffectConfig.Original
Enclosing class:
EffectConfig

@EditorTypes(value={EffectConfig.Original.class,EffectConfig.Derived.class})
public abstract static class EffectConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the effect.


Constructor Summary
EffectConfig.Implementation()
           
 
Method Summary
abstract  EffectSprite.Implementation createSpriteImplementation(TudeyContext ctx, Scope scope, Effect effect)
          Creates a sprite implementation for this configuration.
abstract  EffectConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 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

EffectConfig.Implementation

public EffectConfig.Implementation()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getOriginal

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


createSpriteImplementation

public abstract 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.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.