|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TileType
- tile type used.public interface TileBasedMap<TileType extends DefaultTile>
Describe a map using tile for its representation. This is the lower level interface to describe a 2D map using tiles. A default implementation already exists (AbstractTiledMap)
DefaultTile
,
AbstractTileMap
Method Summary | |
---|---|
int |
getHeightInTiles()
Get number of vertical tiles. |
int |
getPatternsNumber()
Get the number of used pattern. |
TileType |
getTile(int v,
int h)
Get tile from specified map location (in tile index). |
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 (in real location). |
Method Detail |
---|
TileType getTile(int v, int h)
v
- vertical tile index location.h
- horizontal tile index location.
void renderTile(java.awt.Graphics2D g, int x, int y, TileType tile)
g
- graphic output.x
- real location x.y
- real location y.tile
- tile to render.int getPatternsNumber()
int getTileWidth()
int getTileHeight()
int getWidthInTiles()
int getHeightInTiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |