com.threerings.tudey.config
Class GroundConfig

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.PaintableConfig
                  extended by com.threerings.tudey.config.GroundConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, ResourceManager.ModificationObserver, Copyable, Cloneable

public class GroundConfig
extends PaintableConfig

The configuration of a ground type.


Nested Class Summary
static class GroundConfig.Derived
          A derived implementation.
static class GroundConfig.EdgeCase
          Ground edge case class.
static class GroundConfig.Implementation
          Contains the actual implementation of the ground type.
static class GroundConfig.Original
          An original ground implementation.
static class GroundConfig.TransitionCase
          Transition edge case.
 
Nested classes/interfaces inherited from class com.threerings.tudey.config.PaintableConfig
PaintableConfig.Case, PaintableConfig.Tile, PaintableConfig.TileRotation
 
Field Summary
 GroundConfig.Implementation implementation
          The actual ground implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
_args, _base, _derived, parameters
 
Fields inherited from class com.threerings.config.ManagedConfig
_cfgmgr, _listeners, _name, _updateConfigs, _updateResources
 
Constructor Summary
GroundConfig()
           
 
Method Summary
protected static int createPattern(TudeySceneModel scene, ConfigReference<GroundConfig> ref, GroundConfig.Original original, int x, int y, int elevation)
          Creates a bit pattern identifying the bordering locations matching the specified ground config.
protected  void fireConfigUpdated()
          Fires a configuration updated event.
 GroundConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
protected  void getUpdateReferences(ConfigReferenceSet refs)
          Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().
 
Methods inherited from class com.threerings.tudey.config.PaintableConfig
createPattern, createRandomEntry, createRandomEntry, createRandomEntry, getCaseRotations, matchesAny, matchesAny
 
Methods inherited from class com.threerings.config.ParameterizedConfig
applyArguments, applyArguments, getBound, getInstance, getParameter, getParameter, getReference, maybeFireOnConfigManager, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, addUpdateDependencies, clearUpdateDependencies, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, getUpdateResources, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

@Editable
public GroundConfig.Implementation implementation
The actual ground implementation.

Constructor Detail

GroundConfig

public GroundConfig()
Method Detail

getOriginal

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


fireConfigUpdated

protected void fireConfigUpdated()
Description copied from class: ManagedConfig
Fires a configuration updated event.

Overrides:
fireConfigUpdated in class ManagedConfig

getUpdateReferences

protected void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ManagedConfig
Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().

Overrides:
getUpdateReferences in class ManagedConfig

createPattern

protected static int createPattern(TudeySceneModel scene,
                                   ConfigReference<GroundConfig> ref,
                                   GroundConfig.Original original,
                                   int x,
                                   int y,
                                   int elevation)
Creates a bit pattern identifying the bordering locations matching the specified ground config.