com.threerings.tudey.config
Class AreaConfig.Derived

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

public static class AreaConfig.Derived
extends AreaConfig.Implementation

A derived implementation.


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

area

@Editable(nullable=true)
public ConfigReference<AreaConfig> area
The area reference.

Constructor Detail

AreaConfig.Derived

public AreaConfig.Derived()
Method Detail

getUpdateReferences

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

Overrides:
getUpdateReferences in class AreaConfig.Implementation

getOriginal

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

Specified by:
getOriginal in class AreaConfig.Implementation

getCursorImplementation

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

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

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


Copyright © 2011. All Rights Reserved.