com.threerings.miso.tile
Class MisoTileManager

java.lang.Object
  extended by com.threerings.media.tile.TileManager
      extended by com.threerings.miso.tile.MisoTileManager

public class MisoTileManager
extends TileManager

Extends the basic tile manager and provides support for automatically generating fringes in between different types of base tiles in a scene.


Field Summary
protected  AutoFringer _fringer
          The entity that performs the automatic fringe layer generation.
protected static String FRINGE_CONFIG_PATH
          The path (in the classpath) to the serialized fringe configuration.
 
Fields inherited from class com.threerings.media.tile.TileManager
_defaultProvider, _handcache, _imgr, _setrep
 
Constructor Summary
MisoTileManager(ResourceManager rmgr, ImageManager imgr)
          Creates a tile manager and provides it with a reference to the image manager from which it will load tileset images.
 
Method Summary
 AutoFringer getAutoFringer()
          Returns the auto fringer that has been configured for use by this tile manager.
 
Methods inherited from class com.threerings.media.tile.TileManager
clearCache, getImageProvider, getTile, getTile, getTile, getTileSet, getTileSet, getTileSetRepository, loadCachedTileSet, loadTileSet, loadTileSet, loadTileSet, setTileSetRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fringer

protected AutoFringer _fringer
The entity that performs the automatic fringe layer generation.


FRINGE_CONFIG_PATH

protected static final String FRINGE_CONFIG_PATH
The path (in the classpath) to the serialized fringe configuration.

See Also:
Constant Field Values
Constructor Detail

MisoTileManager

public MisoTileManager(ResourceManager rmgr,
                       ImageManager imgr)
Creates a tile manager and provides it with a reference to the image manager from which it will load tileset images.

Parameters:
imgr - the image manager via which the tile manager will decode and cache images.
Method Detail

getAutoFringer

public AutoFringer getAutoFringer()
Returns the auto fringer that has been configured for use by this tile manager. This will only be valid if this tile manager has been provided with a miso tileset repository via TileManager.setTileSetRepository(com.threerings.media.tile.TileSetRepository).