com.threerings.tudey.config
Class TileConfig.Derived

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

public static class TileConfig.Derived
extends TileConfig.Implementation

A derived implementation.


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

tile

@Editable(nullable=true)
public ConfigReference<TileConfig> tile
The tile reference.

Constructor Detail

TileConfig.Derived

public TileConfig.Derived()
Method Detail

getUpdateReferences

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

Overrides:
getUpdateReferences in class TileConfig.Implementation

getOriginal

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

Specified by:
getOriginal in class TileConfig.Implementation

getCursorImplementation

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

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

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