LazyLib
A C D E F G I L M N O S V W

A

advance(float, List) - Method in class CombatUtils
Automatically called by the game.
aimTowardsPoint(WeaponAPI, Vector2f, float) - Static method in class WeaponUtils
Manually adjusts a weapon's aim towards a point.
AIUtils - Class in org.lazywizard.lazylib.combat
Contains methods that deal with a single combat entity.
AnchoredEntity - Class in org.lazywizard.lazylib.combat.entities
An implementation of CombatEntityAPI that follows and rotates with another anchoring CombatEntityAPI.
AnchoredEntity(CombatEntityAPI, Vector2f) - Constructor for class AnchoredEntity
Creates a CombatEntityAPI that follows and rotates with another anchoring CombatEntityAPI.
applyForce(CombatEntityAPI, Vector2f, float) - Static method in class CombatUtils
Apply force to an object.
applyForce(CombatEntityAPI, float, float) - Static method in class CombatUtils
Apply force to an object.
areAllies(CampaignFleetAPI, CampaignFleetAPI) - Static method in class FleetUtils
Checks if two fleets are allies.
areEnemies(CampaignFleetAPI, CampaignFleetAPI) - Static method in class FleetUtils
Checks if two fleets are enemies.
areNeutral(CampaignFleetAPI, CampaignFleetAPI) - Static method in class FleetUtils
Checks if two fleets are neutral towards each other.

C

calculateActualDamage(float, WeaponAPI) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateActualDamage(float, WeaponAPI, ShipAPI, DefenseType) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerBurst(WeaponAPI) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerBurst(WeaponAPI, ShipAPI, DefenseType) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerSecond(WeaponAPI) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerSecond(WeaponAPI, ShipAPI, DefenseType) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerShot(WeaponAPI) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
calculateDamagePerShot(WeaponAPI, ShipAPI, DefenseType) - Static method in class WeaponUtils
Deprecated. Too complicated to test/maintain. These methods will be removed after the next Starsector release.
canUseSystemThisFrame(ShipAPI) - Static method in class AIUtils
Check if a ship's system can be used/toggled this frame.
CargoUtils - Class in org.lazywizard.lazylib.campaign
Contains methods for working with cargo and item stacks.
clampAngle(float) - Static method in class MathUtils
Clamps an angle within 360 degrees (ex: 400 degrees becomes 40 degrees).
CollectionUtils - Class in org.lazywizard.lazylib
Contains methods for working with Collections.
CollectionUtils.SortEntitiesByDistance - Class in org.lazywizard.lazylib
A Comparator that sorts CombatEntityAPIs by distance from a Vector2f.
CollectionUtils.SortEntitiesByDistance(Vector2f, boolean) - Constructor for class CollectionUtils.SortEntitiesByDistance
 
CollectionUtils.SortEntitiesByDistance(Vector2f) - Constructor for class CollectionUtils.SortEntitiesByDistance
 
CollectionUtils.SortObjectivesByDistance - Class in org.lazywizard.lazylib
Deprecated. Use CollectionUtils.SortEntitiesByDistance instead.
CollectionUtils.SortObjectivesByDistance(Vector2f) - Constructor for class CollectionUtils.SortObjectivesByDistance
Deprecated.  
CollectionUtils.SortTokensByDistance - Class in org.lazywizard.lazylib
A Comparator that sorts SectorEntityTokens by distance from a Vector2f.
CollectionUtils.SortTokensByDistance(Vector2f, boolean) - Constructor for class CollectionUtils.SortTokensByDistance
 
CollectionUtils.SortTokensByDistance(Vector2f) - Constructor for class CollectionUtils.SortTokensByDistance
 
CollisionUtils - Class in org.lazywizard.lazylib
Contains methods for working with bounds and collision detection.
CombatUtils - Class in org.lazywizard.lazylib.combat
Contains methods that deal with the battle map in general.
CombatUtils() - Constructor for class CombatUtils
 
compare(CombatEntityAPI, CombatEntityAPI) - Method in class CollectionUtils.SortEntitiesByDistance
Compares the distances of two CombatEntityAPIs from a central location.
compare(BattleObjectiveAPI, BattleObjectiveAPI) - Method in class CollectionUtils.SortObjectivesByDistance
Deprecated. Compares the distances of two BattleObjectiveAPIs from a central location.
compare(SectorEntityToken, SectorEntityToken) - Method in class CollectionUtils.SortTokensByDistance
Compares the distances of two SectorEntityTokens from a central location.
cos(double) - Static method in class FastTrig
Get the cosine of an angle

D

DefenseType - Enum in org.lazywizard.lazylib.combat
 
DefenseUtils - Class in org.lazywizard.lazylib.combat
Contains methods to make working with a ship's armor grid and defenses easier.

E

equals(float, float) - Static method in class MathUtils
Tests for near-equality of floating point numbers.

F

FastTrig - Class in org.lazywizard.lazylib
Utility to handle Java's odd trig performance issues
FleetUtils - Class in org.lazywizard.lazylib.campaign
Contains methods for working with fleets and fleet data.

G

getAlliedFleetsInSystem(CampaignFleetAPI, boolean) - Static method in class FleetUtils
Find all allies of a CampaignFleetAPI present in the system.
getAlliedFleetsInSystem(CampaignFleetAPI) - Static method in class FleetUtils
Find all allies of a CampaignFleetAPI present in the system.
getAlliesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
Find all present allies of an entity.
getAlliesOnMap(CombatEntityAPI) - Static method in class AIUtils
Find all present allies of an entity.
getAnchor() - Method in class AnchoredEntity
Returns the CombatEntityAPI this entity is anchored to.
getAngle(Vector2f, Vector2f) - Static method in class MathUtils
Returns the angle between two Vector2fs.
getArmorCellAtWorldCoord(ShipAPI, Vector2f) - Static method in class DefenseUtils
Deprecated. Use ArmorGridAPI.getCellAtLocation( org.lwjgl.util.vector.Vector2f) instead.
getArmorDamage(ShipAPI, Vector2f) - Static method in class DefenseUtils
Get the total damage taken by a ShipAPI's armor at a location.
getArmorLevel(ShipAPI, Vector2f) - Static method in class DefenseUtils
Get the armor level of a ShipAPI at a location.
getArmorValue(ShipAPI, Vector2f) - Static method in class DefenseUtils
Get the armor value of a ShipAPI at a location.
getAsteroidsWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all asteroids in range of a given location.
getAsteroidsWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all asteroids in range of a given location.
getCollides(Vector2f, Vector2f, Vector2f, float) - Static method in class CollisionUtils
Check if a line connects with a circle.
getCollisionPoint(Vector2f, Vector2f, CombatEntityAPI) - Static method in class CollisionUtils
Finds the part of the ship that would be intersected by a given path.
getCollisionPoint(Vector2f, Vector2f, Vector2f, Vector2f) - Static method in class CollisionUtils
Finds the point of intersection between two lines.
getCombatEngine() - Static method in class CombatUtils
Deprecated. Use Global.getCombatEngine() instead.
getDefenseAtPoint(ShipAPI, Vector2f) - Static method in class DefenseUtils
Determine what DefenseType is present at a specific location on a ShipAPI.
getDirectionalVector(Vector2f, Vector2f) - Static method in class MathUtils
Returns a normalized Vector2f pointing from source to destination.
getDirectionalVector(CombatEntityAPI, Vector2f) - Static method in class MathUtils
Returns a normalized Vector2f pointing from source to destination.
getDirectionalVector(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
Returns a normalized Vector2f pointing from source to destination.
getDistance(SectorEntityToken, SectorEntityToken) - Static method in class MathUtils
Returns the distance between two SectorEntityTokens, including interaction radius.
getDistance(SectorEntityToken, Vector2f) - Static method in class MathUtils
Returns the distance between a SectorEntityToken and a Vector2f (includes interaction radius).
getDistance(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
Returns the distance between two CombatEntityAPIs, including collision radius.
getDistance(CombatEntityAPI, Vector2f) - Static method in class MathUtils
Returns the distance between a CombatEntityAPI and a Vector2f (includes collision radius).
getDistance(Vector2f, Vector2f) - Static method in class MathUtils
Returns the distance between two Vector2fs.
getDistanceSquared(SectorEntityToken, SectorEntityToken) - Static method in class MathUtils
Returns the distance squared between two SectorEntityTokens.
getDistanceSquared(SectorEntityToken, Vector2f) - Static method in class MathUtils
Returns the distance squared between a SectorEntityToken and a Vector2f.
getDistanceSquared(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
Returns the distance squared between two CombatEntityAPIs (includes collision radii).
getDistanceSquared(CombatEntityAPI, Vector2f) - Static method in class MathUtils
Returns the distance squared between a CombatEntityAPI and a Vector2f (includes collision radius).
getDistanceSquared(Vector2f, Vector2f) - Static method in class MathUtils
Returns the distance squared between two Vector2fs (avoids a costly sqrt()).
getElapsedCombatTime() - Static method in class CombatUtils
Deprecated. Use CombatEngineAPI.getTotalElapsedTime(boolean) instead.
getElapsedCombatTimeIncludingPaused() - Static method in class CombatUtils
Deprecated. Use CombatEngineAPI.getTotalElapsedTime(boolean) instead.
getEnemiesInArc(WeaponAPI, boolean) - Static method in class WeaponUtils
Finds all enemy ships within range of a WeaponAPI.
getEnemiesInArc(WeaponAPI) - Static method in class WeaponUtils
Finds all enemy ships within range of a WeaponAPI.
getEnemiesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
Find all present enemies of an entity.
getEnemiesOnMap(CombatEntityAPI) - Static method in class AIUtils
Find all present enemies of an entity.
getEnemyFleetsInSystem(CampaignFleetAPI, boolean) - Static method in class FleetUtils
Find all enemies of a CampaignFleetAPI present in the system.
getEnemyFleetsInSystem(CampaignFleetAPI) - Static method in class FleetUtils
Find all enemies of a CampaignFleetAPI present in the system.
getEnemyMissilesInArc(WeaponAPI, boolean) - Static method in class WeaponUtils
Finds all enemy missiles within range of a WeaponAPI.
getEnemyMissilesInArc(WeaponAPI) - Static method in class WeaponUtils
Finds all enemy missiles within range of a WeaponAPI.
getEnemyMissilesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
Find all present enemies of an entity.
getEnemyMissilesOnMap(CombatEntityAPI) - Static method in class AIUtils
Find all present enemy missiles of an entity.
getEntitiesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all entities in range of a given location.
getEntitiesWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all entities in range of a given location.
getEquidistantPointsInsideCircle(Vector2f, float, float) - Static method in class MathUtils
Returns a List of evenly spaced Vector2fs inside a circle.
getFacing(Vector2f) - Static method in class MathUtils
Returns the facing of a Vector2f.
getFleetMember(ShipAPI) - Static method in class CombatUtils
Find a ShipAPI's corresponding FleetMemberAPI in the campaign.
getInfo() - Static method in class LazyLib
Get the library information (for startup messages, etc).
getLocation() - Method in class AnchoredEntity
Returns the location of this entity, calculated to be relative to its anchor.
getLocation() - Method in class SimpleEntity
Returns the location this SimpleEntity is mimicking.
getMissilesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all missiles in range of a given location.
getMissilesWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all missiles in range of a given location.
getNearbyAlliedFleets(CampaignFleetAPI, float, boolean) - Static method in class FleetUtils
Finds all allied fleets within a certain range around a CampaignFleetAPI.
getNearbyAlliedFleets(CampaignFleetAPI, float) - Static method in class FleetUtils
Finds all allied fleets within a certain range around a CampaignFleetAPI.
getNearbyAllies(CombatEntityAPI, float, boolean) - Static method in class AIUtils
Finds all allies within a certain range around an entity.
getNearbyAllies(CombatEntityAPI, float) - Static method in class AIUtils
Finds all allies within a certain range around an entity.
getNearbyEnemies(CombatEntityAPI, float, boolean) - Static method in class AIUtils
Finds all enemies within a certain range around an entity.
getNearbyEnemies(CombatEntityAPI, float) - Static method in class AIUtils
Finds all enemies within a certain range around an entity.
getNearbyEnemyFleets(CampaignFleetAPI, float, boolean) - Static method in class FleetUtils
Finds all enemy fleets within a certain range around a CampaignFleetAPI.
getNearbyEnemyFleets(CampaignFleetAPI, float) - Static method in class FleetUtils
Finds all enemy fleets within a certain range around a CampaignFleetAPI.
getNearbyEnemyMissiles(CombatEntityAPI, float, boolean) - Static method in class AIUtils
Finds all enemy missiles within a certain range around an entity.
getNearbyEnemyMissiles(CombatEntityAPI, float) - Static method in class AIUtils
Finds all enemy missiles within a certain range around an entity.
getNearestAlliedFleet(CampaignFleetAPI) - Static method in class FleetUtils
Find the closest allied fleet to a CampaignFleetAPI.
getNearestAlly(CombatEntityAPI) - Static method in class AIUtils
Find the closest ally of an entity.
getNearestEnemy(CombatEntityAPI) - Static method in class AIUtils
Find the closest enemy of an entity.
getNearestEnemyFleet(CampaignFleetAPI) - Static method in class FleetUtils
Find the closest enemy fleet to a CampaignFleetAPI.
getNearestEnemyInArc(WeaponAPI) - Static method in class WeaponUtils
Find the closest enemy in range of a WeaponAPI.
getNearestEnemyMissile(CombatEntityAPI) - Static method in class AIUtils
Find the closest enemy missile near an entity.
getNearestEnemyMissileInArc(WeaponAPI) - Static method in class WeaponUtils
Find the closest enemy missile in range of a WeaponAPI.
getNearestFleet(SectorEntityToken) - Static method in class FleetUtils
Find the closest CampaignFleetAPI near a SectorEntityToken.
getNearestMissile(CombatEntityAPI) - Static method in class AIUtils
Find the closest missile near entity.
getNearestObjective(CombatEntityAPI) - Static method in class AIUtils
Find the closest BattleObjectiveAPI to an entity.
getNearestShip(CombatEntityAPI) - Static method in class AIUtils
Find the closest ship near entity.
getNearestStation(SectorEntityToken) - Static method in class FleetUtils
Find the closest orbital station to a SectorEntityToken.
getObjectivesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all objectives in range of a given location.
getObjectivesWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all objectives in range of a given location.
getPointOnCircumference(Vector2f, float, float) - Static method in class MathUtils
Returns a point along the circumference of a circle at the given angle.
getPointsAlongCircumference(Vector2f, float, int, float) - Static method in class MathUtils
Returns an evenly distributed List of points along a circle's circumference.
getProjectilesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all projectiles in range of a given location.
getProjectilesWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all projectiles in range of a given location.
getRandom() - Static method in class MathUtils
Returns the random number generator used by LazyLib's methods.
getRandomNumberInRange(float, float) - Static method in class MathUtils
Returns a random number within a given range.
getRandomPointInCircle(Vector2f, float) - Static method in class MathUtils
Returns a random point inside of a circle with uniform distribution.
getRandomPointOnCircumference(Vector2f, float) - Static method in class MathUtils
Returns a random point along the circumference of a circle.
getRandomPointOnLine(Vector2f, Vector2f) - Static method in class MathUtils
Returns a random point along the line between two Vector2fs.
getShipsWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
Returns all ships in range of a given location.
getShipsWithinRange(Vector2f, float) - Static method in class CombatUtils
Returns all ships in range of a given location.
getSpaceTakenByCargo(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by all cargo types in a CargoAPI.
getSpaceTakenByCrew(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by crew in a CargoAPI.
getSpaceTakenByFuel(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by fuel in a CargoAPI.
getSpaceTakenByResources(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by all resources in a CargoAPI.
getSpaceTakenBySupplies(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by supplies in a CargoAPI.
getSpaceTakenByWeapons(CargoAPI) - Static method in class CargoUtils
Returns the amount of space taken by weapons in a CargoAPI.
getSupportedGameVersion() - Static method in class LazyLib
Gets the Starsector release this version was coded for.
getTimeSinceLastFrame() - Static method in class CombatUtils
Deprecated. Use CombatEngineAPI.getElapsedInLastFrame() instead.
getTimeToAim(WeaponAPI, Vector2f) - Static method in class WeaponUtils
Calculate how long it would take to turn a WeaponAPI to aim at a location.
getVelocity() - Method in class AnchoredEntity
Returns this entity's velocity.
getVersion() - Static method in class LazyLib
Get the version number of this LazyLib instance.

I

implode(Collection, String) - Static method in class CollectionUtils
Combines and separates a Collection of Strings.
implode(Collection) - Static method in class CollectionUtils
Creates a comma-separated String from a Collection's entries.
init(CombatEngineAPI) - Method in class CombatUtils
Automatically called by the game.
isDevBuild() - Static method in class LazyLib
Check if this is a dev (beta) build of LazyLib.
isPlayer(CampaignFleetAPI) - Static method in class FleetUtils
Checks if a fleet is the player fleet.
isPointOnLine(Vector2f, Vector2f, Vector2f) - Static method in class MathUtils
Check if a point is along the line between two Vector2fs.
isPointWithinBounds(Vector2f, CombatEntityAPI) - Static method in class CollisionUtils
Checks if a point is inside or on the bounds of a CombatEntityAPI.
isPointWithinBounds(Vector2f, CombatEntityAPI) - Static method in class MathUtils
Deprecated. Use CollisionUtils.isPointWithinBounds(org.lwjgl.util.vector.Vector2f, com.fs.starfarer.api.combat.CombatEntityAPI) instead.
isPointWithinCircle(Vector2f, Vector2f, float) - Static method in class MathUtils
Returns whether a point is within the bounds of a circle or not.
isPointWithinCollisionCircle(Vector2f, CombatEntityAPI) - Static method in class CollisionUtils
Checks if a point is inside the collision circle of a CombatEntityAPI.
isWithinArc(CombatEntityAPI, WeaponAPI) - Static method in class WeaponUtils
Checks if a CombatEntityAPI is within the arc and range of a WeaponAPI.

L

LazyLib - Class in org.lazywizard.lazylib
Contains information on the current version of LazyLib.
LazyLib() - Constructor for class LazyLib
 
LINE_LENGTH - Static variable in class MessageUtils
How long a line can be before being split by MessageUtils.showMessage(java.lang.String)

M

MathUtils - Class in org.lazywizard.lazylib
Contains methods for working with vectors, angles, distances, and circles.
MessageUtils - Class in org.lazywizard.lazylib.campaign
Allows formatted, multi-line, word-wrapped sector messages
moveCargo(CargoAPI, CargoAPI) - Static method in class CargoUtils
Moves all CargoStackAPIs from one CargoAPI to another.
moveStack(CargoStackAPI, CargoAPI) - Static method in class CargoUtils
Moves an entire CargoStackAPI from its current location to another CargoAPI.
moveStack(CargoStackAPI, SectorEntityToken) - Static method in class CargoUtils
Moves an entire CargoStackAPI from its current location to the CargoAPI of another SectorEntityToken.

N

NOT_IN_GRID - Static variable in class DefenseUtils
A constant that represents a point not in a ship's armor grid.

O

onApplicationLoad() - Method in class LazyLib
 
org.lazywizard.lazylib - package org.lazywizard.lazylib
Contains general methods that mostly help with non-API data types.
org.lazywizard.lazylib.campaign - package org.lazywizard.lazylib.campaign
Contains campaign helper classes.
org.lazywizard.lazylib.combat - package org.lazywizard.lazylib.combat
Contains combat helper classes.
org.lazywizard.lazylib.combat.entities - package org.lazywizard.lazylib.combat.entities
Contains instantiable combat entities.

S

setLogLevel(Level) - Static method in class LazyLib
Sets the log level for all LazyLib classes.
showMessage(String, String, boolean) - Static method in class MessageUtils
Formats and word-wraps the supplied text, then outputs it to the player.
showMessage(String) - Static method in class MessageUtils
Formats and word-wraps the supplied text, then outputs it to the player.
SimpleEntity - Class in org.lazywizard.lazylib.combat.entities
A bare-bones implementation of CombatEntityAPI, mostly useful for EMP arcs.
SimpleEntity(Vector2f) - Constructor for class SimpleEntity
Creates a CombatEntityAPI that stays in a single, predefined location.
SimpleEntity(Object) - Constructor for class SimpleEntity
Creates a CombatEntityAPI that mimics the location of an object such as a WeaponAPI.
sin(double) - Static method in class FastTrig
Get the sine of an angle

V

valueOf(String) - Static method in enum DefenseType
Returns the enum constant of this type with the specified name.
values() - Static method in enum DefenseType
Returns an array containing the constants of this enum type, in the order they are declared.

W

WeaponUtils - Class in org.lazywizard.lazylib.combat
Contains methods that deal with weapons and weapon arcs.
weightedRandom(Map<T, Float>, int) - Static method in class CollectionUtils
Deprecated. Use com.fs.starfarer.api.util.WeightedRandomPicker instead (call pick() multiple times).
weightedRandom(Map<T, Float>) - Static method in class CollectionUtils
Deprecated. Use com.fs.starfarer.api.util.WeightedRandomPicker instead.

A C D E F G I L M N O S V W
LazyLib