public interface TileRenderer extends GameDataSerializable, org.mini2Dx.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics g,
int renderX,
int renderY,
float alpha)
Renders the
Tile at the given coordinates |
void |
draw(Graphics g,
int renderX,
int renderY,
float alpha,
boolean flipH,
boolean flipV,
boolean flipD)
Renders the
Tile at the given coordinates |
Sprite |
getCurrentTileImage()
Returns the current
Tile image |
int |
getRendererType() |
void |
update(float delta)
Updates the
Tile frame |
readData, writeDatavoid update(float delta)
Tile framedelta - The time since the last update in secondsvoid draw(Graphics g, int renderX, int renderY, float alpha)
Tile at the given coordinatesg - The Graphics context to userenderX - The x coordinate to render atrenderY - The y coordinate to render atalpha - The alpha value to render withvoid draw(Graphics g, int renderX, int renderY, float alpha, boolean flipH, boolean flipV, boolean flipD)
Tile at the given coordinatesg - The Graphics context to userenderX - 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 imageint getRendererType()