com.threerings.tudey.config
Class ActorConfig.Derived

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

public static class ActorConfig.Derived
extends ActorConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<ActorConfig> actor
          The actor reference.
 
Constructor Summary
ActorConfig.Derived()
           
 
Method Summary
 ActorConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 ActorSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, ActorSprite.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.ActorConfig.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

actor

@Editable(nullable=true)
public ConfigReference<ActorConfig> actor
The actor reference.

Constructor Detail

ActorConfig.Derived

public ActorConfig.Derived()
Method Detail

getUpdateReferences

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

Overrides:
getUpdateReferences in class ActorConfig.Implementation

getOriginal

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

Specified by:
getOriginal in class ActorConfig.Implementation

getSpriteImplementation

public ActorSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                          Scope scope,
                                                          ActorSprite.Implementation impl)
Description copied from class: ActorConfig.Implementation
Creates or updates a sprite implementation for this configuration.

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