LazyLib

Deprecated API


Contents
Deprecated Classes
CollectionUtils.SortObjectivesByDistance
          Use CollectionUtils.SortEntitiesByDistance instead. 
 

Deprecated Methods
org.lazywizard.lazylib.combat.WeaponUtils.calculateActualDamage(float, WeaponAPI)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateActualDamage(float, WeaponAPI, ShipAPI, DefenseType)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerBurst(WeaponAPI)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerBurst(WeaponAPI, ShipAPI, DefenseType)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerSecond(WeaponAPI)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerSecond(WeaponAPI, ShipAPI, DefenseType)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerShot(WeaponAPI)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.combat.WeaponUtils.calculateDamagePerShot(WeaponAPI, ShipAPI, DefenseType)
          Too complicated to test/maintain. These methods will be removed after the next Starsector release. 
org.lazywizard.lazylib.campaign.FleetUtils.getAlliedFleetsInSystem(CampaignFleetAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortTokensByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getAlliesOnMap(CombatEntityAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.MathUtils.getAngle(Vector2f, Vector2f)
          Use VectorUtils.getAngle(Vector2f, Vector2f) instead. 
org.lazywizard.lazylib.combat.DefenseUtils.getArmorCellAtWorldCoord(ShipAPI, Vector2f)
          Use ArmorGridAPI.getCellAtLocation(Vector2f) instead. 
org.lazywizard.lazylib.combat.CombatUtils.getAsteroidsWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getCombatEngine()
          Use Global.getCombatEngine() instead. 
org.lazywizard.lazylib.MathUtils.getDirectionalVector(CombatEntityAPI, CombatEntityAPI)
          Use MathUtils.getDirectionalVector(Vector2f, Vector2f) instead. 
org.lazywizard.lazylib.MathUtils.getDirectionalVector(CombatEntityAPI, Vector2f)
          Use MathUtils.getDirectionalVector(Vector2f, Vector2f) instead. 
org.lazywizard.lazylib.combat.CombatUtils.getElapsedCombatTime()
          Use CombatEngineAPI.getTotalElapsedTime(boolean) instead. 
org.lazywizard.lazylib.combat.CombatUtils.getElapsedCombatTimeIncludingPaused()
          Use CombatEngineAPI.getTotalElapsedTime(boolean) instead. 
org.lazywizard.lazylib.combat.WeaponUtils.getEnemiesInArc(WeaponAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getEnemiesOnMap(CombatEntityAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.campaign.FleetUtils.getEnemyFleetsInSystem(CampaignFleetAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortTokensByDistance as the Comparator. 
org.lazywizard.lazylib.combat.WeaponUtils.getEnemyMissilesInArc(WeaponAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getEnemyMissilesOnMap(CombatEntityAPI, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getEntitiesWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.MathUtils.getFacing(Vector2f)
          Use VectorUtils.getFacing(Vector2f) instead. 
org.lazywizard.lazylib.combat.CombatUtils.getMissilesWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.campaign.FleetUtils.getNearbyAlliedFleets(CampaignFleetAPI, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortTokensByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getNearbyAllies(CombatEntityAPI, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getNearbyEnemies(CombatEntityAPI, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.campaign.FleetUtils.getNearbyEnemyFleets(CampaignFleetAPI, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortTokensByDistance as the Comparator. 
org.lazywizard.lazylib.combat.AIUtils.getNearbyEnemyMissiles(CombatEntityAPI, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getObjectivesWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getProjectilesWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getShipsWithinRange(Vector2f, float, boolean)
          Use the normal version of this method and call Collections.sort(List, Comparator) using a CollectionUtils.SortEntitiesByDistance as the Comparator. 
org.lazywizard.lazylib.combat.CombatUtils.getTimeSinceLastFrame()
          Use CombatEngineAPI.getElapsedInLastFrame() instead. 
org.lazywizard.lazylib.MathUtils.isPointWithinBounds(Vector2f, CombatEntityAPI)
          Use CollisionUtils.isPointWithinBounds(Vector2f, CombatEntityAPI) instead. 
org.lazywizard.lazylib.CollectionUtils.weightedRandom(Map)
          Use WeightedRandomPicker instead. 
org.lazywizard.lazylib.CollectionUtils.weightedRandom(Map, int)
          Use WeightedRandomPicker instead (call pick() multiple times). 
 


LazyLib