com.threerings.tudey.config
Class ActorConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.tudey.config.ActorConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

public class ActorConfig
extends ParameterizedConfig

The configuration of an actor.


Nested Class Summary
static class ActorConfig.Agent
          Implementation for computer-controlled actors.
static class ActorConfig.Derived
          A derived implementation.
static class ActorConfig.Implementation
          Contains the actual implementation of the actor.
static class ActorConfig.Mobile
          Base class for mobile implementations.
static class ActorConfig.Original
          Superclass of the original implementations.
static class ActorConfig.Pawn
          Implementation for user-controlled actors.
 
Field Summary
 ActorConfig.Implementation implementation
          The actual actor implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
ActorConfig()
           
 
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.
 
Methods inherited from class com.threerings.config.ParameterizedConfig
getInstance, getParameter, getReference, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName, updateFromSource
 
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

implementation

@Editable
public ActorConfig.Implementation implementation
The actual actor implementation.

Constructor Detail

ActorConfig

public ActorConfig()
Method Detail

getOriginal

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


getSpriteImplementation

public ActorSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                          Scope scope,
                                                          ActorSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration.

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