com.threerings.tudey.config
Class PaintableConfig.TileRotation

java.lang.Object
  extended by com.threerings.tudey.config.PaintableConfig.TileRotation
Enclosing class:
PaintableConfig

protected static class PaintableConfig.TileRotation
extends Object

Represents a rotated tile.


Field Summary
 int height
          The height of the rotated tile.
 int rotation
          The tile rotation.
 PaintableConfig.Tile tile
          The owning tile.
 float weight
          The weight of the rotation.
 int width
          The width of the rotated tile.
 
Constructor Summary
PaintableConfig.TileRotation(PaintableConfig.Tile tile, int rotation)
          Creates a new tile rotation.
 
Method Summary
 TudeySceneModel.TileEntry createEntry(int elevation)
          Creates and returns a tile entry based on this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tile

public PaintableConfig.Tile tile
The owning tile.


rotation

public int rotation
The tile rotation.


width

public int width
The width of the rotated tile.


height

public int height
The height of the rotated tile.


weight

public float weight
The weight of the rotation.

Constructor Detail

PaintableConfig.TileRotation

public PaintableConfig.TileRotation(PaintableConfig.Tile tile,
                                    int rotation)
Creates a new tile rotation.

Method Detail

createEntry

public TudeySceneModel.TileEntry createEntry(int elevation)
Creates and returns a tile entry based on this configuration.