- getAlliedFleetsInSystem(CampaignFleetAPI) - Static method in class FleetUtils
-
Find all allies of a CampaignFleetAPI
present in the system.
- getAlliedFleetsInSystem(CampaignFleetAPI, boolean) - Static method in class FleetUtils
-
- getAlliesInArc(WeaponAPI) - Static method in class WeaponUtils
-
Finds all allied ships within range of a WeaponAPI
.
- getAlliesOnMap(CombatEntityAPI) - Static method in class AIUtils
-
Find all present allies of an entity.
- getAlliesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
-
- getAnchor() - Method in class AnchoredEntity
-
Returns the CombatEntityAPI
this entity is anchored to.
- getAngle(Vector2f, Vector2f) - Static method in class MathUtils
-
- getAngle(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns the angle between two Vector2f
s.
- getArmorCellAtWorldCoord(ShipAPI, Vector2f) - Static method in class DefenseUtils
-
Deprecated.
Use ArmorGridAPI.getCellAtLocation(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) - Static method in class CombatUtils
-
Returns all asteroids in range of a given location.
- getAsteroidsWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- getCollides(Vector2f, Vector2f, Vector2f, float) - Static method in class CollisionUtils
-
Checks 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.
- getCrossProduct(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns the cross product of two Vector2f
s.
- getDefenseAtPoint(ShipAPI, Vector2f) - Static method in class DefenseUtils
-
Determine what
DefenseType
is present at a specific location
on a
ShipAPI
.
- getDirectionalVector(CombatEntityAPI, Vector2f) - Static method in class MathUtils
-
- getDirectionalVector(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
-
- getDirectionalVector(Vector2f, Vector2f) - Static method in class MathUtils
-
- getDirectionalVector(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns a normalized Vector2f
pointing from source
to
destination
.
- getDistance(SectorEntityToken, SectorEntityToken) - Static method in class MathUtils
-
Returns the distance between two SectorEntityToken
s,
including interaction radii.
- getDistance(SectorEntityToken, Vector2f) - Static method in class MathUtils
-
Returns the distance between a SectorEntityToken
and a
Vector2f
, including interaction radius.
- getDistance(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
-
Returns the distance between two CombatEntityAPI
s, including
collision radii.
- getDistance(CombatEntityAPI, Vector2f) - Static method in class MathUtils
-
Returns the distance between a CombatEntityAPI
and a
Vector2f
, including collision radius.
- getDistance(Vector2f, Vector2f) - Static method in class MathUtils
-
Returns the distance between two Vector2f
s.
- getDistanceSquared(SectorEntityToken, SectorEntityToken) - Static method in class MathUtils
-
Returns the distance squared between two SectorEntityToken
s,
including interaction radii.
- getDistanceSquared(SectorEntityToken, Vector2f) - Static method in class MathUtils
-
Returns the distance squared between a SectorEntityToken
and
a Vector2f
, including interaction radius.
- getDistanceSquared(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
-
Returns the distance squared between two CombatEntityAPI
s,
including 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 Vector2f
s (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) - Static method in class WeaponUtils
-
Finds all enemy ships within range of a WeaponAPI
.
- getEnemiesInArc(WeaponAPI, boolean) - Static method in class WeaponUtils
-
- getEnemiesOnMap(CombatEntityAPI) - Static method in class AIUtils
-
Find all present enemies of an entity.
- getEnemiesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
-
- getEnemyFleetsInSystem(CampaignFleetAPI) - Static method in class FleetUtils
-
Find all enemies of a CampaignFleetAPI
present in the system.
- getEnemyFleetsInSystem(CampaignFleetAPI, boolean) - Static method in class FleetUtils
-
- getEnemyMissilesInArc(WeaponAPI) - Static method in class WeaponUtils
-
Finds all enemy missiles within range of a WeaponAPI
.
- getEnemyMissilesInArc(WeaponAPI, boolean) - Static method in class WeaponUtils
-
- getEnemyMissilesOnMap(CombatEntityAPI) - Static method in class AIUtils
-
Find all present enemy missiles of an entity.
- getEnemyMissilesOnMap(CombatEntityAPI, boolean) - Static method in class AIUtils
-
- getEntitiesWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all entities in range of a given location.
- getEntitiesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- getEquidistantPointsInsideCircle(Vector2f, float, float) - Static method in class MathUtils
-
Returns a List
of evenly spaced Vector2f
s inside a
circle.
- getFacing(Vector2f) - Static method in class MathUtils
-
- getFacing(Vector2f) - Static method in class VectorUtils
-
Returns the facing of a Vector2f
.
- getFleetMember(ShipAPI) - Static method in class CombatUtils
-
Find a ShipAPI
's corresponding FleetMemberAPI
.
- getInfo() - Static method in class LazyLib
-
Gets 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 - Variable in class SimpleEntity
-
- getLocation() - Method in class SimpleEntity
-
- getLogLevel() - Static method in class LazyLib
-
Returns the log level used for all other LazyLib classes.
- getMissilesWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all missiles in range of a given location.
- getMissilesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- getNearbyAlliedFleets(CampaignFleetAPI, float) - Static method in class FleetUtils
-
Finds all allied fleets within a certain range around a
CampaignFleetAPI
.
- getNearbyAlliedFleets(CampaignFleetAPI, float, boolean) - Static method in class FleetUtils
-
- getNearbyAllies(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all allies within a certain range around an entity.
- getNearbyAllies(CombatEntityAPI, float, boolean) - Static method in class AIUtils
-
- getNearbyEnemies(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all enemies within a certain range around an entity.
- getNearbyEnemies(CombatEntityAPI, float, boolean) - Static method in class AIUtils
-
- getNearbyEnemyFleets(CampaignFleetAPI, float) - Static method in class FleetUtils
-
Finds all enemy fleets within a certain range around a
CampaignFleetAPI
.
- getNearbyEnemyFleets(CampaignFleetAPI, float, boolean) - Static method in class FleetUtils
-
- getNearbyEnemyMissiles(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all enemy missiles within a certain range around an entity.
- getNearbyEnemyMissiles(CombatEntityAPI, float, boolean) - Static method in class AIUtils
-
- getNearbyFleets(CampaignFleetAPI, float) - Static method in class FleetUtils
-
Finds all fleets within a certain range around a
CampaignFleetAPI
.
- 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.
- getNearestAllyInArc(WeaponAPI) - Static method in class WeaponUtils
-
Find the closest ally in range of a WeaponAPI
.
- 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) - Static method in class CombatUtils
-
Returns all objectives in range of a given location.
- getObjectivesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- 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) - Static method in class CombatUtils
-
Returns all projectiles in range of a given location, excluding missiles.
- getProjectilesWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- 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.
- getRandomPointInCone(Vector2f, float, float, float) - Static method in class MathUtils
-
Returns a random point inside of a circular sector (2d cone) 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 Vector2f
s.
- getRelation(CampaignFleetAPI, CampaignFleetAPI) - Static method in class FleetUtils
-
Returns the faction relationship between two fleets.
- getShipsWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all ships in range of a given location.
- getShipsWithinRange(Vector2f, float, boolean) - Static method in class CombatUtils
-
- getShortestRotation(float, float) - Static method in class MathUtils
-
Returns the direction and length of the quickest rotation between two
angles.
- 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
-
Returns 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.
- getType() - Method in class SimpleEntity
-
- getVelocity() - Method in class AnchoredEntity
-
Returns this entity's velocity.
- getVersion() - Static method in class LazyLib
-
Returns the running version of LazyLib.
- getWeapon() - Method in class SimpleEntity
-
Returns the WeaponAPI
this entity is attached to, if any.
- implode(Collection, String) - Static method in class CollectionUtils
-
Combines and separates a Collection
of String
s.
- implode(Collection) - Static method in class CollectionUtils
-
Creates a comma-separated String
from a Collection
's
entries.
- indent(String, String) - Static method in class StringUtils
-
Prepends every line of a String
with another String
.
- isCachingEnabled() - Static method in class LazyLib
-
Checks if caching of the results of expensive methods is enabled.
- isDevBuild() - Static method in class LazyLib
-
Checks if this is a development (potentially unstable) 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 Vector2f
s.
- isPointOnSegment(Vector2f, BoundsAPI.SegmentAPI) - Static method in class CollisionUtils
-
Check if a point is along a BoundsAPI.SegmentAPI
.
- 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
-
- 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
.
- isShipInFleet(String, CampaignFleetAPI) - Static method in class FleetUtils
-
Checks if a fleet contains a specific ship.
- isVisibleToSide(CombatEntityAPI, int) - Static method in class CombatUtils
-
Checks if a CombatEntityAPI
is visible to a side of battle.
- isWithinArc(CombatEntityAPI, WeaponAPI) - Static method in class WeaponUtils
-
Checks if a CombatEntityAPI
is within the arc and range of a
WeaponAPI
.
- isWithinRange(SectorEntityToken, SectorEntityToken, float) - Static method in class MathUtils
-
Check if two SectorEntityToken
s are within a certain distance of
each other, including interaction radii.
- isWithinRange(SectorEntityToken, Vector2f, float) - Static method in class MathUtils
-
Check if a SectorEntityToken
is within a certain distance of a
location, including interaction radius.
- isWithinRange(CombatEntityAPI, CombatEntityAPI, float) - Static method in class MathUtils
-
Check if two CombatEntityAPI
s are within a certain distance of
each other, including collision radii.
- isWithinRange(CombatEntityAPI, Vector2f, float) - Static method in class MathUtils
-
Check if a CombatEntityAPI
is within a certain distance of a
location, including collision radius.
- isWithinRange(Vector2f, Vector2f, float) - Static method in class MathUtils
-
Check if two objects are within a certain distance of each other.