|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.stage.tools.editor.TestTileLoader
public class TestTileLoader
The TestTileLoader handles test tiles. Test tiles are tiles that an artist can load in on-the-fly to see how things look in the scene editor.
| Field Summary | |
|---|---|
protected int |
_fakeID
The value of the next fakeID we'll hand out. |
protected Map<String,Integer> |
_idmap
A mapping of pathname -> tileset id. |
protected com.threerings.media.tile.ImageProvider |
_improv
Our image provider. |
protected com.threerings.media.tile.tools.xml.XMLTileSetParser |
_parser
Our xml parser. |
| Constructor Summary | |
|---|---|
TestTileLoader()
Construct the TestTileLoader. |
|
| Method Summary | |
|---|---|
void |
commit()
Since we're just testing, we don't save these crazy IDs. |
int |
getTileSetID(String tileSetPath)
Generate unique and completely fake tileset IDs that will be stable even after a reload of test tiles. |
HashIntMap<com.threerings.media.tile.TileSet> |
loadTestTiles()
Check the specified directory and all its subdirectories for xml files. |
protected void |
loadTestTilesFromDir(File directory,
HashIntMap<com.threerings.media.tile.TileSet> sets)
Load xml tile sets from a directory. |
boolean |
tileSetMapped(String tilesetPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _fakeID
protected Map<String,Integer> _idmap
protected com.threerings.media.tile.tools.xml.XMLTileSetParser _parser
protected com.threerings.media.tile.ImageProvider _improv
| Constructor Detail |
|---|
public TestTileLoader()
| Method Detail |
|---|
public HashIntMap<com.threerings.media.tile.TileSet> loadTestTiles()
protected void loadTestTilesFromDir(File directory,
HashIntMap<com.threerings.media.tile.TileSet> sets)
public int getTileSetID(String tileSetPath)
getTileSetID in interface com.threerings.media.tile.TileSetIDBrokerpublic boolean tileSetMapped(String tilesetPath)
tileSetMapped in interface com.threerings.media.tile.TileSetIDBrokerpublic void commit()
commit in interface com.threerings.media.tile.TileSetIDBroker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||