Refactor HDMap configuration - add shaders, perspectives

This commit is contained in:
Mike Primm 2011-07-08 22:40:40 -05:00
parent 7e5865a899
commit 69baafe597
19 changed files with 1375 additions and 769 deletions

View file

@ -118,11 +118,6 @@ public class FlatMap extends MapType {
return result;
}
@Override
public boolean isHightestBlockYDataNeeded() {
return true;
}
@Override
public boolean render(MapChunkCache cache, MapTile tile, File outputFile) {
FlatMapTile t = (FlatMapTile) tile;
@ -443,7 +438,7 @@ public class FlatMap extends MapType {
private String fname_day;
public FlatMapTile(DynmapWorld world, FlatMap map, int x, int y, int size) {
super(world, map);
super(world);
this.map = map;
this.x = x;
this.y = y;
@ -473,6 +468,29 @@ public class FlatMap extends MapType {
public String toString() {
return getWorld().getName() + ":" + getFilename();
}
@Override
public boolean render(MapChunkCache cache) {
return map.render(cache, this, MapManager.mapman.getTileFile(this));
}
@Override
public List<DynmapChunk> getRequiredChunks() {
return map.getRequiredChunks(this);
}
@Override
public MapTile[] getAdjecentTiles() {
return map.getAdjecentTiles(this);
}
@Override
public String getKey() {
return world.world.getName() + "." + map.getName();
}
public boolean isHightestBlockYDataNeeded() { return true; }
}
@Override