|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.miso.tile.FringeConfiguration
public class FringeConfiguration
Used to manage data about which base tilesets fringe on which others and how they fringe.
| Nested Class Summary | |
|---|---|
static class |
FringeConfiguration.FringeRecord
|
static class |
FringeConfiguration.FringeTileSetRecord
Used to parse the tileset fringe definitions. |
| Field Summary | |
|---|---|
protected HashIntMap<FringeConfiguration.FringeRecord> |
_frecs
The mapping from base tileset id to fringerecord. |
static String |
CONFIG_PATH
The path (relative to the resource directory) at which the fringe configuration should be loaded and stored. |
| Constructor Summary | |
|---|---|
FringeConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addFringeRecord(FringeConfiguration.FringeRecord frec)
Adds a parsed FringeRecord to this instance. |
int |
fringesOn(int first,
int second)
If the first base tileset fringes upon the second, return the fringe priority of the first base tileset, otherwise return -1. |
FringeConfiguration.FringeTileSetRecord |
getFringe(int baseset,
int hashValue)
Get a random FringeTileSetRecord from amongst the ones listed for the specified base tileset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_PATH
protected HashIntMap<FringeConfiguration.FringeRecord> _frecs
| Constructor Detail |
|---|
public FringeConfiguration()
| Method Detail |
|---|
public void addFringeRecord(FringeConfiguration.FringeRecord frec)
public int fringesOn(int first,
int second)
public FringeConfiguration.FringeTileSetRecord getFringe(int baseset,
int hashValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||