From a9d84749ba5a07d2d97421928cb5a2f70a7362fe Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 11 Sep 2023 14:26:06 -0400 Subject: [PATCH] Removed worthless command. --- src/engine/devcmd/cmds/AuditHeightMapCmd.java | 70 ------------------- src/engine/gameManager/DevCmdManager.java | 1 - 2 files changed, 71 deletions(-) delete mode 100644 src/engine/devcmd/cmds/AuditHeightMapCmd.java diff --git a/src/engine/devcmd/cmds/AuditHeightMapCmd.java b/src/engine/devcmd/cmds/AuditHeightMapCmd.java deleted file mode 100644 index 66e6d1ed..00000000 --- a/src/engine/devcmd/cmds/AuditHeightMapCmd.java +++ /dev/null @@ -1,70 +0,0 @@ -// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . -// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· -// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ -// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ -// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ -// Magicbane Emulator Project © 2013 - 2022 -// www.magicbane.com - - -package engine.devcmd.cmds; - -import engine.InterestManagement.HeightMap; -import engine.devcmd.AbstractDevCmd; -import engine.gameManager.ZoneManager; -import engine.math.Vector2f; -import engine.math.Vector3fImmutable; -import engine.objects.AbstractGameObject; -import engine.objects.PlayerCharacter; -import engine.objects.Zone; - -public class AuditHeightMapCmd extends AbstractDevCmd { - - public AuditHeightMapCmd() { - super("auditheightmap"); - } - - @Override - protected void _doCmd(PlayerCharacter pcSender, String[] words, - AbstractGameObject target) { - - int count = Integer.parseInt(words[0]); - long start = System.currentTimeMillis(); - for (int i = 0; i < count; i++) { - - - Zone currentZone = ZoneManager.findSmallestZone(pcSender.getLoc()); - - - Vector3fImmutable currentLoc = Vector3fImmutable.getRandomPointInCircle(currentZone.getLoc(), currentZone.getBounds().getHalfExtents().x < currentZone.getBounds().getHalfExtents().y ? currentZone.getBounds().getHalfExtents().x : currentZone.getBounds().getHalfExtents().y); - - Vector2f zoneLoc = ZoneManager.worldToZoneSpace(currentLoc, currentZone); - - if (currentZone != null && currentZone.getHeightMap() != null) { - float altitude = currentZone.getHeightMap().getInterpolatedTerrainHeight(zoneLoc); - float outsetAltitude = HeightMap.getOutsetHeight(altitude, currentZone, pcSender.getLoc()); - } - - } - long end = System.currentTimeMillis(); - - long delta = end - start; - - this.throwbackInfo(pcSender, "Audit Heightmap took " + delta + " ms to run " + count + " times!"); - - - } - - - @Override - protected String _getUsageString() { - return "' /auditmobs [zone.UUID]'"; - } - - @Override - protected String _getHelpString() { - return "Audits all the mobs in a zone."; - - } - -} diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index 47ae6cda..30bc4b2e 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -128,7 +128,6 @@ public enum DevCmdManager { DevCmdManager.registerDevCmd(new SetForceRenameCityCmd()); DevCmdManager.registerDevCmd(new GotoObj()); DevCmdManager.registerDevCmd(new convertLoc()); - DevCmdManager.registerDevCmd(new AuditHeightMapCmd()); DevCmdManager.registerDevCmd(new UnloadFurnitureCmd()); DevCmdManager.registerDevCmd(new SetNpcEquipSetCmd()); DevCmdManager.registerDevCmd(new SetBuildingAltitudeCmd());