rlgamekit.map.display
Class AbstractTilePainter

java.lang.Object
  extended by rlgamekit.map.display.AbstractTilePainter
All Implemented Interfaces:
TilePainter
Direct Known Subclasses:
ASCIITilePainter, GraphicsTilePainter

public abstract class AbstractTilePainter
extends java.lang.Object
implements TilePainter

Paint a map element at a specified screen location.


Field Summary
protected  int viewHeight
           
protected  int[] viewMap
           
protected  int viewWidth
           
 
Fields inherited from interface rlgamekit.map.display.TilePainter
VIEW_REMEMBERED, VIEW_VISIBLE
 
Constructor Summary
AbstractTilePainter()
           
 
Method Summary
 void setViewMap(int[] viewMap, int viewWidth, int viewHeight)
          Set the source map data for painting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface rlgamekit.map.display.TilePainter
paint
 

Field Detail

viewWidth

protected int viewWidth

viewHeight

protected int viewHeight

viewMap

protected int[] viewMap
Constructor Detail

AbstractTilePainter

public AbstractTilePainter()
Method Detail

setViewMap

public void setViewMap(int[] viewMap,
                       int viewWidth,
                       int viewHeight)
Set the source map data for painting.

Parameters:
viewMap - Which map cells are visible?
viewWidth - Width of view array.
viewHeight - height of view array.