com.threerings.tudey.util
Class TilePainter

java.lang.Object
  extended by com.threerings.tudey.util.TilePainter

public class TilePainter
extends Object

Encapsulates the logic used to "paint" ground and wall tiles.


Constructor Summary
TilePainter(ConfigManager cfgmgr, TudeySceneModel scene, EntryManipulator manipulator)
          Creates a new tile painter.
 
Method Summary
 void paintGround(CoordSet coords, ConfigReference<GroundConfig> ground, int elevation)
          Paints the specified coordinates with ground.
 void paintGround(CoordSet coords, ConfigReference<GroundConfig> ground, int elevation, boolean erase, boolean revise)
          Paints the specified coordinates with ground.
 void paintWall(CoordSet coords, ConfigReference<WallConfig> wall, int elevation)
          Paints the specified coordinates with wall.
 void paintWall(CoordSet coords, ConfigReference<WallConfig> wall, int elevation, boolean erase, boolean revise)
          Paints the specified coordinates with wall.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilePainter

public TilePainter(ConfigManager cfgmgr,
                   TudeySceneModel scene,
                   EntryManipulator manipulator)
Creates a new tile painter.

Method Detail

paintGround

public void paintGround(CoordSet coords,
                        ConfigReference<GroundConfig> ground,
                        int elevation)
Paints the specified coordinates with ground.


paintGround

public void paintGround(CoordSet coords,
                        ConfigReference<GroundConfig> ground,
                        int elevation,
                        boolean erase,
                        boolean revise)
Paints the specified coordinates with ground.

Parameters:
erase - if true, erase the ground within the coordinates.
revise - if true, replace existing tiles with new variants.

paintWall

public void paintWall(CoordSet coords,
                      ConfigReference<WallConfig> wall,
                      int elevation)
Paints the specified coordinates with wall.


paintWall

public void paintWall(CoordSet coords,
                      ConfigReference<WallConfig> wall,
                      int elevation,
                      boolean erase,
                      boolean revise)
Paints the specified coordinates with wall.

Parameters:
erase - if true, erase the wall within the coordinates.
revise - if true, replace existing tiles with new variants.


Copyright © 2011. All Rights Reserved.