|
|
@ -55,6 +55,9 @@ public class HeightMap { |
|
|
|
private float seaLevel = 0; |
|
|
|
private float seaLevel = 0; |
|
|
|
private int[][] pixelColorValues; |
|
|
|
private int[][] pixelColorValues; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private float zone_minBlend; |
|
|
|
|
|
|
|
private float zone_maxBlend; |
|
|
|
|
|
|
|
|
|
|
|
public HeightMap(ResultSet rs) throws SQLException { |
|
|
|
public HeightMap(ResultSet rs) throws SQLException { |
|
|
|
|
|
|
|
|
|
|
|
this.heightMapID = rs.getInt("heightMapID"); |
|
|
|
this.heightMapID = rs.getInt("heightMapID"); |
|
|
@ -64,6 +67,9 @@ public class HeightMap { |
|
|
|
this.zoneLoadID = rs.getInt("zoneLoadID"); |
|
|
|
this.zoneLoadID = rs.getInt("zoneLoadID"); |
|
|
|
this.seaLevel = rs.getFloat("seaLevel"); |
|
|
|
this.seaLevel = rs.getFloat("seaLevel"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.zone_minBlend = rs.getFloat("outsetZ"); |
|
|
|
|
|
|
|
this.zone_maxBlend = rs.getFloat("outsetX"); |
|
|
|
|
|
|
|
|
|
|
|
// Cache the full extents to avoid the calculation
|
|
|
|
// Cache the full extents to avoid the calculation
|
|
|
|
|
|
|
|
|
|
|
|
this.fullExtentsX = halfExtentsX * 2; |
|
|
|
this.fullExtentsX = halfExtentsX * 2; |
|
|
|