public class FringeConfiguration extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FringeConfiguration.FringeRecord |
static class |
FringeConfiguration.FringeTileSetRecord
Used to parse the tileset fringe definitions.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_PATH
The path (relative to the resource directory) at which the fringe
configuration should be loaded and stored.
|
| Constructor and Description |
|---|
FringeConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String CONFIG_PATH
public void addFringeRecord(FringeConfiguration.FringeRecord frec)
public int fringesOn(int first,
int second)
public FringeConfiguration.FringeTileSetRecord getFringe(int baseset, int hashValue)
Copyright © 2015. All rights reserved.