com.threerings.tudey.config
Class PaintableConfig.Tile

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

public static class PaintableConfig.Tile
extends DeepObject
implements Exportable

Contains a tile that can be used for a case.


Field Summary
 boolean east
          Whether or not the tile can be oriented in each direction.
 int elevationOffset
          The elevation offset of the tile.
 boolean north
          Whether or not the tile can be oriented in each direction.
 boolean south
          Whether or not the tile can be oriented in each direction.
 ConfigReference<TileConfig> tile
          The tile reference.
 float weight
          The weight of the tile (affects how often it occurs).
 boolean west
          Whether or not the tile can be oriented in each direction.
 
Constructor Summary
PaintableConfig.Tile()
           
 
Method Summary
 void getRotations(ConfigManager cfgmgr, ArrayList<com.threerings.tudey.config.PaintableConfig.TileRotation> rotations, int mask, int maxWidth, int maxHeight)
          Adds the tile rotation options to the provided list.
 void invalidate()
          Invalidates any cached data.
 boolean matches(TudeySceneModel.TileEntry entry, int elevation)
          Determines whether the specified tile entry matches this tile.
 
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

tile

@Editable(nullable=true)
public ConfigReference<TileConfig> tile
The tile reference.


north

@Editable(hgroup="d")
public boolean north
Whether or not the tile can be oriented in each direction.


west

@Editable(hgroup="d")
public boolean west
Whether or not the tile can be oriented in each direction.


south

@Editable(hgroup="d")
public boolean south
Whether or not the tile can be oriented in each direction.


east

@Editable(hgroup="d")
public boolean east
Whether or not the tile can be oriented in each direction.


elevationOffset

@Editable(hgroup="e")
public int elevationOffset
The elevation offset of the tile.


weight

@Editable(min=0.0,
          step=0.01,
          hgroup="e")
public float weight
The weight of the tile (affects how often it occurs).

Constructor Detail

PaintableConfig.Tile

public PaintableConfig.Tile()
Method Detail

matches

public boolean matches(TudeySceneModel.TileEntry entry,
                       int elevation)
Determines whether the specified tile entry matches this tile.


getRotations

public void getRotations(ConfigManager cfgmgr,
                         ArrayList<com.threerings.tudey.config.PaintableConfig.TileRotation> rotations,
                         int mask,
                         int maxWidth,
                         int maxHeight)
Adds the tile rotation options to the provided list.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.