public interface TileRenderer extends GameDataSerializable, org.mini2Dx.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics g,
Tile tile,
int renderX,
int renderY,
float alpha)
Renders the
Tile at the given coordinates |
void |
draw(Graphics g,
Tile tile,
int renderX,
int renderY,
float alpha,
boolean flipH,
boolean flipV,
boolean flipD)
Renders the
Tile at the given coordinates |
Sprite |
getCurrentTileImage(Tile tile)
Returns the current
Tile image |
int |
getRendererType() |
void |
update(Tile tile,
float delta)
Updates the
Tile frame |
readData, writeDatavoid update(Tile tile, float delta)
Tile frametile - The Tile to updatedelta - The time since the last update in secondsvoid draw(Graphics g, Tile tile, int renderX, int renderY, float alpha)
Tile at the given coordinatesvoid draw(Graphics g, Tile tile, int renderX, int renderY, float alpha, boolean flipH, boolean flipV, boolean flipD)
Tile at the given coordinatesg - The Graphics context to usetile - The Tile to renderrenderX - The x coordinate to render atrenderY - The y coordinate to render atalpha - The alpha value to render withflipH - True if the tile is flipped horizontallyflipV - True if the tile is flipped verticallyflipD - True if the tile is flipped (anti) diagonally - rotationSprite getCurrentTileImage(Tile tile)
Tile imagetile - The Tile to get the image forint getRendererType()