com.threerings.tudey.config
Class AreaConfig.Implementation

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

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

Contains the actual implementation of the area.


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

AreaConfig.Implementation

public AreaConfig.Implementation()
Method Detail

getUpdateReferences

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


getOriginal

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


getCursorImplementation

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

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

Parameters:
scope - the area'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.