|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.tile.TileUtil
public class TileUtil
Miscellaneous utility routines for working with tiles.
| Field Summary | |
|---|---|
protected static long |
ADDEND
|
protected static long |
MASK
|
protected static long |
MULTIPLIER
|
| Constructor Summary | |
|---|---|
TileUtil()
|
|
| Method Summary | |
|---|---|
static int |
getFQTileId(int tileSetId,
int tileIndex)
Generates a fully-qualified tile id given the supplied tileset id and tile index. |
static int |
getTileHash(int x,
int y)
Compute some hash value for "randomizing" tileset picks based on x and y coordinates. |
static int |
getTileIndex(int fqTileId)
Extracts the tile index from the supplied fully qualified tile id. |
static int |
getTileSetId(int fqTileId)
Extracts the tile set id from the supplied fully qualified tile id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long MULTIPLIER
protected static final long ADDEND
protected static final long MASK
| Constructor Detail |
|---|
public TileUtil()
| Method Detail |
|---|
public static int getFQTileId(int tileSetId,
int tileIndex)
public static int getTileSetId(int fqTileId)
public static int getTileIndex(int fqTileId)
public static int getTileHash(int x,
int y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||