rlgamekit.map.display
Class ASCIITilePainter
java.lang.Object
rlgamekit.map.display.AbstractTilePainter
rlgamekit.map.display.ASCIITilePainter
- All Implemented Interfaces:
- TilePainter
public class ASCIITilePainter
- extends AbstractTilePainter
Paint an ASCII character for a map cell at a specified screen location.
|
Method Summary |
void |
paint(java.awt.Graphics gr,
int layer,
int mapX,
int mapY,
int xpos,
int ypos,
int tileNo)
Paint a tile from the tile sheet at the given location. |
void |
setFont(java.awt.Font font,
int rasterX)
Set the font to be used for drawing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASCIITilePainter
public ASCIITilePainter()
setFont
public final void setFont(java.awt.Font font,
int rasterX)
- Set the font to be used for drawing.
- Parameters:
font - The font to use.
paint
public void paint(java.awt.Graphics gr,
int layer,
int mapX,
int mapY,
int xpos,
int ypos,
int tileNo)
- Paint a tile from the tile sheet at the given location.
- Parameters:
gr - Graphics context to use for paintinglayer - Map layer to use as sourcemapX - source map x positionmapY - source map y positionxpos - x position to paint the tileypos - y position to paint the tiletileNo - color and number of the tile to paint.