com.threerings.tudey.data
Class TudeySceneModel.Paint

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.data.TudeySceneModel.Paint
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
TudeySceneModel

public static class TudeySceneModel.Paint
extends DeepObject
implements Exportable

Contains information on a painted location.


Nested Class Summary
static class TudeySceneModel.Paint.Type
          The types of paint.
 
Field Summary
 int elevation
          The paintable's elevation.
 ConfigReference<? extends PaintableConfig> paintable
          The configuration of the paintable.
 TudeySceneModel.Paint.Type type
          The paint type.
 
Constructor Summary
TudeySceneModel.Paint()
          No-arg constructor for deserialization.
TudeySceneModel.Paint(TudeySceneModel.Paint.Type type, ConfigReference<? extends PaintableConfig> paintable, int elevation)
          Default constructor.
 
Method Summary
 int encode(int idx)
          Returns the encoded form of this paint entry.
<T extends PaintableConfig>
T
getConfig(ConfigManager cfgmgr, Class<T> clazz)
          Resolves the paintable configuration for this paint.
 
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

type

public TudeySceneModel.Paint.Type type
The paint type.


paintable

public ConfigReference<? extends PaintableConfig> paintable
The configuration of the paintable.


elevation

public int elevation
The paintable's elevation.

Constructor Detail

TudeySceneModel.Paint

public TudeySceneModel.Paint(TudeySceneModel.Paint.Type type,
                             ConfigReference<? extends PaintableConfig> paintable,
                             int elevation)
Default constructor.


TudeySceneModel.Paint

public TudeySceneModel.Paint()
No-arg constructor for deserialization.

Method Detail

getConfig

public <T extends PaintableConfig> T getConfig(ConfigManager cfgmgr,
                                               Class<T> clazz)
Resolves the paintable configuration for this paint.


encode

public int encode(int idx)
Returns the encoded form of this paint entry.

Parameters:
idx - the paint config index.


Copyright © 2011. All Rights Reserved.