com.threerings.tudey.config
Class PathConfig.Implementation

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

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

Contains the actual implementation of the path.


Constructor Summary
PathConfig.Implementation()
           
 
Method Summary
abstract  PathCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, PathCursor.Implementation impl)
          Creates or updates a cursor implementation for this configuration.
abstract  PathConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
abstract  PathSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, PathSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 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

PathConfig.Implementation

public PathConfig.Implementation()
Method Detail

getUpdateReferences

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


getOriginal

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


getCursorImplementation

public abstract PathCursor.Implementation getCursorImplementation(TudeyContext ctx,
                                                                  Scope scope,
                                                                  PathCursor.Implementation impl)
Creates or updates a cursor implementation for this configuration.

Parameters:
scope - the path's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

getSpriteImplementation

public abstract PathSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                                  Scope scope,
                                                                  PathSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration.

Parameters:
scope - the path's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.