TileType
- tile type used.public interface TileBasedMap<TileType extends AbstractTile>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIR
Map directory.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeightInTiles()
Get number of vertical tiles.
|
int |
getPatternsNumber()
Get the number of pattern used.
|
TileType |
getTile(int v,
int h)
Get tile at specified location.
|
int |
getTileHeight()
Get height of a tile.
|
int |
getTileWidth()
Get width of a tile.
|
int |
getWidthInTiles()
Get number of horizontal tiles.
|
void |
renderTile(java.awt.Graphics2D g,
int x,
int y,
TileType tile)
Render a tile at specified location.
|
static final java.lang.String DIR
TileType getTile(int v, int h)
v
- vertical location (y).h
- horizontal location (x).void renderTile(java.awt.Graphics2D g, int x, int y, TileType tile)
g
- graphic output;x
- location x.y
- location y.tile
- tile to render.int getPatternsNumber()
int getTileWidth()
int getTileHeight()
int getWidthInTiles()
int getHeightInTiles()