Removed usless method: added grid to cmd output.
This commit is contained in:
@@ -12,6 +12,7 @@ package engine.devcmd.cmds;
|
||||
import engine.InterestManagement.HeightMap;
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.math.Vector2f;
|
||||
import engine.objects.AbstractGameObject;
|
||||
import engine.objects.PlayerCharacter;
|
||||
import engine.objects.Zone;
|
||||
@@ -38,6 +39,11 @@ public class GetHeightCmd extends AbstractDevCmd {
|
||||
|
||||
this.throwbackInfo(playerCharacter, "Zone : " + currentZone.getName());
|
||||
this.throwbackInfo(playerCharacter, "Altitude : " + currentHeight);
|
||||
|
||||
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), currentZone);
|
||||
Vector2f gridSquare = currentZone.getHeightMap().getGridSquare(zoneLoc);
|
||||
|
||||
this.throwbackInfo(playerCharacter, "Grid : " + gridSquare.toString());
|
||||
this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName());
|
||||
this.throwbackInfo(playerCharacter, "Altitude : " + parentHeight);
|
||||
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight());
|
||||
|
||||
Reference in New Issue
Block a user