|
|
|
@ -38,21 +38,21 @@ public class GetHeightCmd extends AbstractDevCmd {
@@ -38,21 +38,21 @@ public class GetHeightCmd extends AbstractDevCmd {
|
|
|
|
|
float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); |
|
|
|
|
float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc()); |
|
|
|
|
|
|
|
|
|
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone); |
|
|
|
|
Vector2f gridSquare = heightmapZone.getHeightMap().getGridSquare(zoneLoc); |
|
|
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Zone Height: " + heightmapZone.worldAltitude); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Sea Level: " + heightmapZone.getSeaLevel()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Height returned: " + currentHeight); |
|
|
|
|
|
|
|
|
|
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, "***Height returned: " + currentHeight); |
|
|
|
|
this.throwbackInfo(playerCharacter, "***Adjusted Height: " + playerCharacter.getCharacterHeight()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Drowning Height: " + (heightmapZone.getSeaLevel() + playerCharacter.getCharacterHeight())); |
|
|
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "------------"); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Height returned : " + parentHeight); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight()); |
|
|
|
|
this.throwbackInfo(playerCharacter, "Drowning Height: " + (heightmapZone.getSeaLevel() + playerCharacter.getCharacterHeight())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|