Completed partial refactor.

This commit is contained in:
2023-10-08 09:59:13 -04:00
parent 4b62517d99
commit df54840a88
6 changed files with 27 additions and 72 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ public class GetHeightCmd extends AbstractDevCmd {
float parentHeight = Terrain.getWorldHeight(parentZone, playerCharacter.getLoc());
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone);
Vector2f gridSquare = heightmapZone.getHeightMap().getTerrainCell(zoneLoc);
Vector2f gridSquare = heightmapZone.terrain.getTerrainCell(zoneLoc);
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.zoneName);
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.zoneName);
+3 -6
View File
@@ -90,14 +90,11 @@ public class ZoneInfoCmd extends AbstractDevCmd {
output += "radius: x: " + zone.bounds.getHalfExtents().x + ", z: " + zone.bounds.getHalfExtents().y;
output += newline;
if (zone.getHeightMap() != null) {
output += "HeightMap ID: " + zone.getHeightMap().heightMapID;
if (zone.terrain != null) {
output += "Terrain image: " + zone.terrain_image;
output += newline;
output += "Bucket Width X : " + zone.getHeightMap().cell_size_x;
output += newline;
output += "Bucket Width Y : " + zone.getHeightMap().cell_size_y;
}
output += "radius: x: " + zone.bounds.getHalfExtents().x + ", z: " + zone.bounds.getHalfExtents().y;
output += newline;
// output += "minLvl = " + zone.getMinLvl() + " | maxLvl = " + zone.getMaxLvl();