com.threerings.tudey.config
Class PathConfig.Derived

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

public static class PathConfig.Derived
extends PathConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<PathConfig> path
          The path reference.
 
Constructor Summary
PathConfig.Derived()
           
 
Method Summary
 PathCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, PathCursor.Implementation impl)
          Creates or updates a cursor implementation for this configuration.
 PathConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 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.
 
Methods inherited from class com.threerings.tudey.config.PathConfig.Implementation
invalidate
 
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

path

@Editable(nullable=true)
public ConfigReference<PathConfig> path
The path reference.

Constructor Detail

PathConfig.Derived

public PathConfig.Derived()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: PathConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class PathConfig.Implementation

getOriginal

public PathConfig.Original getOriginal(ConfigManager cfgmgr)
Description copied from class: PathConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class PathConfig.Implementation

getCursorImplementation

public PathCursor.Implementation getCursorImplementation(TudeyContext ctx,
                                                         Scope scope,
                                                         PathCursor.Implementation impl)
Description copied from class: PathConfig.Implementation
Creates or updates a cursor implementation for this configuration.

Specified by:
getCursorImplementation in class PathConfig.Implementation
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 PathSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                         Scope scope,
                                                         PathSprite.Implementation impl)
Description copied from class: PathConfig.Implementation
Creates or updates a sprite implementation for this configuration.

Specified by:
getSpriteImplementation in class PathConfig.Implementation
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.


Copyright © 2011. All Rights Reserved.