|
|
|
@ -30,18 +30,21 @@ public class GetHeightCmd extends AbstractDevCmd {
@@ -30,18 +30,21 @@ public class GetHeightCmd extends AbstractDevCmd {
|
|
|
|
|
|
|
|
|
|
Zone currentZone; |
|
|
|
|
Zone parentZone; |
|
|
|
|
Zone heightmapZone; |
|
|
|
|
|
|
|
|
|
currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc()); |
|
|
|
|
heightmapZone = HeightMap.getNextZoneWithTerrain(currentZone); |
|
|
|
|
parentZone = HeightMap.getNextZoneWithTerrain(currentZone.getParent()); |
|
|
|
|
|
|
|
|
|
float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); |
|
|
|
|
float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc()); |
|
|
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Zone : " + currentZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Altitude : " + currentHeight); |
|
|
|
|
|
|
|
|
|
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), currentZone); |
|
|
|
|
Vector2f gridSquare = currentZone.getHeightMap().getGridSquare(zoneLoc); |
|
|
|
|
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone); |
|
|
|
|
Vector2f gridSquare = heightmapZone.getHeightMap().getGridSquare(zoneLoc); |
|
|
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Grid : " + (int) gridSquare.x + "x" + (int) gridSquare.y); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName()); |
|
|
|
|