com.threerings.stage.tools.editor
Class EditorTileManager

java.lang.Object
  extended by com.threerings.media.tile.TileManager
      extended by com.threerings.miso.tile.MisoTileManager
          extended by com.threerings.stage.tools.editor.EditorTileManager

public class EditorTileManager
extends com.threerings.miso.tile.MisoTileManager

Extends the normal Miso Tile Manager to allow the use of a set of test tiles that can be used in the editor. These are loaded through the TestTileLoader.


Field Summary
protected  HashIntMap<com.threerings.media.tile.TileSet> _testSets
          All the test tile sets we have available.
 
Fields inherited from class com.threerings.miso.tile.MisoTileManager
_fringer, FRINGE_CONFIG_PATH
 
Fields inherited from class com.threerings.media.tile.TileManager
_defaultProvider, _handcache, _imgr, _setrep
 
Constructor Summary
EditorTileManager(com.threerings.resource.ResourceManager rmgr, com.threerings.media.image.ImageManager imgr)
           
 
Method Summary
 void addTestTileSet(int id, com.threerings.media.tile.TileSet set)
          Add a test tile set to search before normal tilesets.
 void clearTestTileSets()
          Clear all of our existing test tile sets.
 com.threerings.media.tile.TileSet getTileSet(int tileSetId)
           
 
Methods inherited from class com.threerings.miso.tile.MisoTileManager
getAutoFringer
 
Methods inherited from class com.threerings.media.tile.TileManager
clearCache, getImageProvider, getTile, getTile, getTile, 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

_testSets

protected HashIntMap<com.threerings.media.tile.TileSet> _testSets
All the test tile sets we have available.

Constructor Detail

EditorTileManager

public EditorTileManager(com.threerings.resource.ResourceManager rmgr,
                         com.threerings.media.image.ImageManager imgr)
Method Detail

getTileSet

public com.threerings.media.tile.TileSet getTileSet(int tileSetId)
                                             throws com.threerings.media.tile.NoSuchTileSetException
Overrides:
getTileSet in class com.threerings.media.tile.TileManager
Throws:
com.threerings.media.tile.NoSuchTileSetException

addTestTileSet

public void addTestTileSet(int id,
                           com.threerings.media.tile.TileSet set)
Add a test tile set to search before normal tilesets.


clearTestTileSets

public void clearTestTileSets()
Clear all of our existing test tile sets.