com.threerings.tudey.config
Class PlaceableConfig.Implementation

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

@EditorTypes(value={PlaceableConfig.Prop.class,PlaceableConfig.ClickableProp.class,PlaceableConfig.StatefulProp.class,PlaceableConfig.Marker.class,PlaceableConfig.Derived.class})
public abstract static class PlaceableConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the placeable.


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

PlaceableConfig.Implementation

public PlaceableConfig.Implementation()
Method Detail

getUpdateReferences

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


getOriginal

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


getCursorImplementation

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

Parameters:
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 abstract PlaceableSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                                       Scope scope,
                                                                       PlaceableSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration.

Parameters:
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.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.