com.threerings.tudey.config
Class PlaceableConfig.Derived

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

public static class PlaceableConfig.Derived
extends PlaceableConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<PlaceableConfig> placeable
          The placeable reference.
 
Constructor Summary
PlaceableConfig.Derived()
           
 
Method Summary
 PlaceableCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, PlaceableCursor.Implementation impl)
          Creates or updates a cursor implementation for this configuration.
 PlaceableConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 PlaceableSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, PlaceableSprite.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.PlaceableConfig.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

placeable

@Editable(nullable=true)
public ConfigReference<PlaceableConfig> placeable
The placeable reference.

Constructor Detail

PlaceableConfig.Derived

public PlaceableConfig.Derived()
Method Detail

getUpdateReferences

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

Overrides:
getUpdateReferences in class PlaceableConfig.Implementation

getOriginal

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

Specified by:
getOriginal in class PlaceableConfig.Implementation

getCursorImplementation

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

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

Specified by:
getSpriteImplementation in class PlaceableConfig.Implementation
scope - the placeable'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.