|
|
@ -24,20 +24,26 @@ public class GetHeightCmd extends AbstractDevCmd { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void _doCmd(PlayerCharacter pc, String[] words, |
|
|
|
protected void _doCmd(PlayerCharacter playerCharacter, String[] words, |
|
|
|
AbstractGameObject target) { |
|
|
|
AbstractGameObject target) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
float height = HeightMap.getWorldHeight(pc.getLoc()); |
|
|
|
Zone currentZone; |
|
|
|
|
|
|
|
Zone parentZone; |
|
|
|
|
|
|
|
|
|
|
|
this.throwbackInfo(pc, "Altitude : " + height); |
|
|
|
currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc()); |
|
|
|
|
|
|
|
parentZone = currentZone.getParent(); |
|
|
|
|
|
|
|
|
|
|
|
this.throwbackInfo(pc, "Character Height: " + pc.getCharacterHeight()); |
|
|
|
float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); |
|
|
|
this.throwbackInfo(pc, "Character Height to start swimming: " + pc.centerHeight); |
|
|
|
float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc()); |
|
|
|
|
|
|
|
|
|
|
|
Zone zone = ZoneManager.findSmallestZone(pc.getLoc()); |
|
|
|
this.throwbackInfo(playerCharacter, "Altitude : " + currentHeight); |
|
|
|
this.throwbackInfo(pc, "Water Level : " + zone.getSeaLevel()); |
|
|
|
this.throwbackInfo(playerCharacter, "Parent Altitude : " + parentHeight); |
|
|
|
this.throwbackInfo(pc, "Character Water Level Above : " + (pc.getCharacterHeight() + height - zone.getSeaLevel())); |
|
|
|
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight()); |
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Character Height to start swimming: " + playerCharacter.centerHeight); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Water Level : " + currentZone.getSeaLevel()); |
|
|
|
|
|
|
|
this.throwbackInfo(playerCharacter, "Character Water Level Above : " + (playerCharacter.getCharacterHeight() + currentHeight - currentZone.getSeaLevel())); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|