public class TileUtil extends Object
| Constructor and Description |
|---|
TileUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)
Copyright © 2015. All rights reserved.