Modifier and Type | Class and Description |
---|---|
(package private) static class |
TileMap.TileMapLRUMember |
Modifier and Type | Field and Description |
---|---|
private LRUCache |
cache |
private static boolean |
COUNT |
private static boolean |
DEBUG |
(package private) static int |
misses |
private java.util.HashMap |
rasters |
(package private) static int |
requests |
private TileGenerator |
source |
Constructor and Description |
---|
TileMap(TileGenerator source,
LRUCache cache) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.Raster |
getTile(int x,
int y) |
java.awt.image.Raster |
getTileNoCompute(int x,
int y) |
void |
setTile(int x,
int y,
java.awt.image.Raster ras) |
private static final boolean DEBUG
private static final boolean COUNT
private java.util.HashMap rasters
private TileGenerator source
private LRUCache cache
static int requests
static int misses
public TileMap(TileGenerator source, LRUCache cache)
public void setTile(int x, int y, java.awt.image.Raster ras)
public java.awt.image.Raster getTileNoCompute(int x, int y)
getTileNoCompute
in interface TileStore