- accept(T) - Method in interface CollectionUtils.CollectionFilter
-
Checks if an object should be allowed past this filter.
- addShipToFleet(String, FleetMemberType, CampaignFleetAPI) - Static method in class CampaignUtils
-
Adds a fully crewed, fully combat ready ship to the designated fleet.
- advance(float) - Method in class EllipticalOrbit
-
Called by Starsector itself - you can ignore this.
- 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 and how it views the
battle map.
- anchor - Variable in class AnchoredEntity
-
- AnchoredEntity - Class in org.lazywizard.lazylib.combat.entities
-
- AnchoredEntity(CombatEntityAPI, Vector2f) - Constructor for class AnchoredEntity
-
Creates a CombatEntityAPI
that follows and rotates with another
anchoring CombatEntityAPI
.
- append(String) - Method in class LazyFont.DrawableString
-
Adds additional text to the end of the current text.
- append(String, Color) - Method in class LazyFont.DrawableString
-
Adds a colored substring to the end of the current text.
- appendIndented(String, int) - Method in class LazyFont.DrawableString
-
Adds additional text to the end of the current text, with indentation.
- appendIndented(String, Color, int) - Method in class LazyFont.DrawableString
-
Adds a colored substring to the end of the current text, with indentation.
- 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.
- areAtRep(SectorEntityToken, SectorEntityToken, CampaignUtils.IncludeRep, RepLevel) - Static method in class CampaignUtils
-
Checks if two campaign objects have a specific reputation with each
other.
- areSameFaction(SectorEntityToken, SectorEntityToken) - Static method in class CampaignUtils
-
Checks if two campaign objects are owned by the same faction.
- atan(double) - Static method in class FastTrig
-
Returns the arc tangent of a value.
- atan2(double, double) - Static method in class FastTrig
-
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
- getAdvance() - Method in class LazyFont.LazyChar
-
- getAlignment() - Method in class LazyFont.DrawableString
-
Returns which side of the text area the text will be aligned with.
- 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
-
- getAnchor() - Method in class LazyFont.DrawableString
-
- 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 in degrees.
- getAngleStrict(Vector2f, Vector2f) - Static method in class VectorUtils
-
Returns the angle between two
Vector2f
s in degrees.
- 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.
- getBaseColor() - Method in class LazyFont.DrawableString
-
Returns the default color of drawn text.
- getBaseHeight() - Method in class LazyFont
-
Returns the base height of the underlying font.
- 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.
- getBlendDest() - Method in class LazyFont.DrawableString
-
Returns the blend destination factor used by
glBlendFunc()
when rendering this block of text.
- getBlendSrc() - Method in class LazyFont.DrawableString
-
Returns the blend source factor used by
glBlendFunc()
when rendering this block of text.
- getChar(char) - Method in class LazyFont
-
Returns font metadata for a specific character.
- 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
-
Returns the distance between two
SectorEntityToken
s,
taking interaction radii into account.
- getDistance(SectorEntityToken, Vector2f) - Static method in class MathUtils
-
- getDistance(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
-
Returns the distance between two
CombatEntityAPI
s, taking
collision radii into account.
- 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,
taking interaction radii into account.
- getDistanceSquared(SectorEntityToken, Vector2f) - Static method in class MathUtils
-
- getDistanceSquared(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
-
Returns the distance squared between two
CombatEntityAPI
s,
taking collision radii into account.
- 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()).
- getEnabledModIds() - Static method in class ModUtils
-
Returns the IDs of all currently enabled mods.
- 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.
- getEntitiesWithRep(SectorEntityToken, String, CampaignUtils.IncludeRep, RepLevel) - Static method in class CampaignUtils
-
Find all entities with a specific tag and reputation with a
SectorEntityToken
in that token's location, excluding itself.
- getEquidistantPointsInsideCircle(Vector2f, float, float) - Static method in class MathUtils
-
- getFacing(Vector2f) - Static method in class VectorUtils
-
Returns the facing (angle) of a
Vector2f
in degrees.
- getFacingStrict(Vector2f) - Static method in class VectorUtils
-
Returns the facing (angle) of a
Vector2f
in degrees.
- getFleetMember(ShipAPI) - Static method in class CombatUtils
-
- getFocus() - Method in class EllipticalOrbit
-
Returns the object we are orbiting.
- getFont() - Method in class LazyFont.DrawableString
-
- getFontName() - Method in class LazyFont
-
Returns the name of the font, as defined in its .fnt file.
- getFontSize() - Method in class LazyFont.DrawableString
-
Returns the font size text will be drawn at.
- getHeight() - Method in class LazyFont.DrawableString
-
Returns the height of the rendered text area.
- getHeight() - Method in class LazyFont.LazyChar
-
- getHostileFleetsInSystem(SectorEntityToken) - Static method in class CampaignUtils
-
Find all hostile fleets towards a
SectorEntityToken
present in
that token's location.
- getId() - Method in class LazyFont.LazyChar
-
- getInfo() - Static method in class LazyLib
-
Gets the library information (for startup messages, etc).
- getKerning(int) - Method in class LazyFont.LazyChar
-
- getKerning(char) - Method in class LazyFont.LazyChar
-
- getKernings() - Method in class LazyFont.LazyChar
-
- getLocation() - Method in class AnchoredEntity
-
Returns the location of this entity, calculated to be relative to
its anchor.
- getLocation() - Method in class SimpleEntity
-
- getLogLevel() - Static method in class LazyLib
-
Returns the log level used for all other LazyLib classes.
- getMaxHeight() - Method in class LazyFont.DrawableString
-
Returns the maximum height of the area that this text will be rendered within.
- getMaxWidth() - Method in class LazyFont.DrawableString
-
Returns the maximum width of the area that this text will be rendered within.
- 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
-
- getNearestPointOnBounds(Vector2f, CombatEntityAPI) - Static method in class CollisionUtils
-
Returns the closest point on a
CombatEntityAPI
's collision bounds to a point.
- getNearestPointOnLine(Vector2f, Vector2f, Vector2f) - Static method in class MathUtils
-
Given a point and a line, returns the nearest point on said line to that point.
- 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.
- getOverrides() - Static method in class ModUtils
-
Returns all vanilla files that have been explicitly overridden in a mod's mod_info.json.
- getPoint(Vector2f, float, float) - Static method in class MathUtils
-
Returns a point along the circumference of a circle at the given angle.
- 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.
- getRenderDebugBounds() - Method in class LazyFont.DrawableString
-
Returns whether bounds drawing is enabled.
- 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.
- getText() - Method in class LazyFont.DrawableString
-
- getTextureHeight() - Method in class LazyFont
-
Returns the height of the font's underlying texture atlas.
- getTextureId() - Method in class LazyFont
-
Returns the ID of the font's underlying texture atlas.
- getTextureWidth() - Method in class LazyFont
-
Returns the width of the font's underlying texture atlas.
- getTimeToAim(WeaponAPI, Vector2f) - Static method in class WeaponUtils
-
Calculate how long it would take to turn a
WeaponAPI
to aim at
a location.
- getTx1() - Method in class LazyFont.LazyChar
-
- getTx2() - Method in class LazyFont.LazyChar
-
- getTy1() - Method in class LazyFont.LazyChar
-
- getTy2() - Method in class LazyFont.LazyChar
-
- 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.
- getWidth() - Method in class LazyFont.DrawableString
-
Returns the width of the rendered text area.
- getWidth() - Method in class LazyFont.LazyChar
-
- getXOffset() - Method in class LazyFont.LazyChar
-
- getYOffset() - Method in class LazyFont.LazyChar
-
- glColor(Color, float, boolean) - Static method in class ColorUtils
-
Sets the OpenGL color using an AWT
Color
object.
- glColor(Color, float) - 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.