- 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.
- getAnchor() - Method in class AnchoredEntity
-
- getAngle() - Method in class EllipticalOrbit
-
Returns the current angle along the orbital path of the orbiting entity.
- getAngle(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns the angle between two
Vector2f
s.
- 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.
- getBestInterceptPoint(Vector2f, float, Vector2f, Vector2f) - Static method in class AIUtils
-
Returns the best place to aim to hit a target, given its current location
and velocity.
- 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.
- getCrossProduct(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns the cross product of two
Vector2f
s.
- getDefenseAtPoint(ShipAPI, Vector2f) - Static method in class DefenseUtils
-
- 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
-
- getDistance(SectorEntityToken, Vector2f) - Static method in class MathUtils
-
- 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
-
- 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
-
- 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
-
- getDistanceSquared(Vector2f, Vector2f) - Static method in class MathUtils
-
Returns the distance squared between two
Vector2f
s (avoids a
costly sqrt()).
- getEnemiesInArc(WeaponAPI) - Static method in class WeaponUtils
-
Finds all enemy ships within range of a
WeaponAPI
.
- getEnemiesOnMap(CombatEntityAPI) - Static method in class AIUtils
-
Find all present and visible enemies of an entity.
- getEnemyMissilesInArc(WeaponAPI) - Static method in class WeaponUtils
-
Finds all enemy missiles within range of a
WeaponAPI
.
- getEnemyMissilesOnMap(CombatEntityAPI) - Static method in class AIUtils
-
Find all present visible enemy missiles of an entity.
- getEngine() - Method in class SimpleEntity
-
- getEntitiesFromFaction(LocationAPI, String, FactionAPI) - Static method in class CampaignUtils
-
Find all entities with a specific tag and faction within a 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
Vector2f
s inside a
circle.
- getFacing(Vector2f) - Static method in class VectorUtils
-
Returns the facing (angle) of a
Vector2f
.
- getFleetMember(ShipAPI) - Static method in class CombatUtils
-
- getFocus() - Method in class EllipticalOrbit
-
Returns the object we are orbiting.
- getHostileFleetsInSystem(SectorEntityToken) - Static method in class CampaignUtils
-
Find all hostile fleets towards a
SectorEntityToken
present in
that token's location.
- 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.
- getMidpoint(Vector2f, Vector2f) - Static method in class MathUtils
-
Returns the point exactly between two other points.
- getMissilesWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all missiles in range of a given location.
- getMostDamagedArmorCell(ShipAPI) - Static method in class DefenseUtils
-
Returns the most damaged armor cell on a
ShipAPI
, or
null
if the ship hasn't taken any armor damage.
- getNearbyAllies(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all allies within a certain range around an entity.
- getNearbyEnemies(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all visible enemies within a certain range around an entity.
- getNearbyEnemyMissiles(CombatEntityAPI, float) - Static method in class AIUtils
-
Finds all visible enemy missiles within a certain range around an entity.
- getNearbyEntitiesFromFaction(SectorEntityToken, float, String, FactionAPI) - Static method in class CampaignUtils
-
Find entities with a specific tag and from a specific faction near a
SectorEntityToken
, excluding itself.
- getNearbyEntitiesWithRep(SectorEntityToken, float, String, CampaignUtils.IncludeRep, RepLevel) - Static method in class CampaignUtils
-
Find nearby entities with a specific tag and reputation with a
SectorEntityToken
, excluding itself.
- getNearbyEntitiesWithTag(SectorEntityToken, float, String) - Static method in class CampaignUtils
-
- getNearbyFleets(SectorEntityToken, float) - Static method in class CampaignUtils
-
- getNearbyHostileFleets(SectorEntityToken, float) - Static method in class CampaignUtils
-
- 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 visible enemy of an entity.
- 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 visible enemy missile near an entity.
- getNearestEnemyMissileInArc(WeaponAPI) - Static method in class WeaponUtils
-
Find the closest enemy missile in range of a
WeaponAPI
.
- getNearestEntityFromFaction(SectorEntityToken, String, FactionAPI) - Static method in class CampaignUtils
-
Find the closest entity with a specific tag and faction near a
SectorEntityToken
, excluding itself.
- getNearestEntityWithRep(SectorEntityToken, String, CampaignUtils.IncludeRep, RepLevel) - Static method in class CampaignUtils
-
Find the closest entity with a specific tag and reputation with a
SectorEntityToken
, excluding itself.
- getNearestEntityWithTag(SectorEntityToken, String) - Static method in class CampaignUtils
-
- getNearestHostileFleet(SectorEntityToken) - Static method in class CampaignUtils
-
- getNearestMissile(CombatEntityAPI) - Static method in class AIUtils
-
Find the closest visible missile near entity.
- getNearestObjective(CombatEntityAPI) - Static method in class AIUtils
-
- getNearestShip(CombatEntityAPI) - Static method in class AIUtils
-
Find the closest visible ship near an entity.
- getObjectivesWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all objectives in range of a given location.
- getOrbitalPeriod() - Method in class EllipticalOrbit
-
- getOrbitAngle() - Method in class EllipticalOrbit
-
Returns the offset angle of the ellipsis used as a path.
- getOrbitHeight() - Method in class EllipticalOrbit
-
Returns the height of the ellipsis used as a path.
- getOrbitWidth() - Method in class EllipticalOrbit
-
Returns the width of the ellipsis used as a path.
- getPointOnCircumference(Vector2f, float, float) - Static method in class MathUtils
-
Returns a point along the circumference of a circle at the given angle.
- getPointOnEllipse(Vector2f, float, float, float, float) - Static method in class EllipseUtils
-
Returns a point along the circumference of an ellipse at the given angle
and facing.
- 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.
- 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 float within a given range.
- getRandomNumberInRange(int, int) - Static method in class MathUtils
-
Returns a random integer 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.
- getRandomPointInEllipse(Vector2f, float, float, float) - Static method in class EllipseUtils
-
Returns a random point inside of an ellipse with uniform distribution.
- getRandomPointOnCircumference(Vector2f, float) - Static method in class MathUtils
-
Returns a random point along the circumference of a circle.
- getRandomPointOnEllipse(Vector2f, float, float, float) - Static method in class EllipseUtils
-
Returns a random point along the circumference of an ellipse.
- getRandomPointOnLine(Vector2f, Vector2f) - Static method in class MathUtils
-
Returns a random point along the line between two
Vector2f
s.
- getRelation(SectorEntityToken, SectorEntityToken) - Static method in class CampaignUtils
-
Returns the faction relationship between two campaign objects.
- getReputation(SectorEntityToken, SectorEntityToken) - Static method in class CampaignUtils
-
Returns the faction relationship between two campaign objects.
- getShipsWithinRange(Vector2f, float) - Static method in class CombatUtils
-
Returns all ships in range of a given location, excluding the shuttle
pod.
- 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
.
- getSpaceTakenByCommodities(CargoAPI) - Static method in class CargoUtils
-
Returns the amount of space taken by all commodities 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
.
- 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.
- 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 the velocity of this entity's anchor (and by definition this entity's velocity as well).
- 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.
- glColor(Color, float, boolean) - Static method in class ColorUtils
-
Sets the OpenGL color using an AWT Color
object.
- glColor(Color) - Static method in class ColorUtils
-
Sets the OpenGL color using an AWT Color
object.