Skip navigation links
LazyLib
A C D E F G H I J L M N O R S T V W 

G

getAdvance() - Method in class LazyFont.LazyChar
 
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
Returns the CombatEntityAPI this entity is anchored to.
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 Vector2fs in degrees.
getAngleStrict(Vector2f, Vector2f) - Static method in class VectorUtils
Returns the angle between two Vector2fs 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.
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.
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.
getColor() - Method in class LazyFont.DrawableString
Returns the current color text will be drawn as.
getCrossProduct(Vector2f, Vector2f) - Static method in class VectorUtils
Returns the cross product of two Vector2fs.
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 VectorUtils
Returns a normalized Vector2f pointing from source to destination.
getDistance(SectorEntityToken, SectorEntityToken) - Static method in class MathUtils
Returns the distance between two SectorEntityTokens, taking interaction radii into account.
getDistance(SectorEntityToken, Vector2f) - Static method in class MathUtils
Returns the distance between a SectorEntityToken and a Vector2f, taking interaction radius into account.
getDistance(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
Returns the distance between two CombatEntityAPIs, taking collision radii into account.
getDistance(CombatEntityAPI, Vector2f) - Static method in class MathUtils
Returns the distance between a CombatEntityAPI and a Vector2f, taking collision radius into account.
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, taking interaction radii into account.
getDistanceSquared(SectorEntityToken, Vector2f) - Static method in class MathUtils
Returns the distance squared between a SectorEntityToken and a Vector2f, taking interaction radius into account.
getDistanceSquared(CombatEntityAPI, CombatEntityAPI) - Static method in class MathUtils
Returns the distance squared between two CombatEntityAPIs, taking collision radii into account.
getDistanceSquared(CombatEntityAPI, Vector2f) - Static method in class MathUtils
Returns the distance squared between a CombatEntityAPI and a Vector2f, taking collision radius into account.
getDistanceSquared(Vector2f, Vector2f) - Static method in class MathUtils
Returns the distance squared between two Vector2fs (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
Returns the ShipEngineControllerAPI.ShipEngineAPI this entity is attached to, if any.
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
Returns a List of evenly spaced Vector2fs inside a circle.
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
Find a ShipAPI's corresponding FleetMemberAPI.
getFocus() - Method in class EllipticalOrbit
Returns the object we are orbiting.
getFont() - Method in class LazyFont.DrawableString
Returns a reference to the LazyFont used to create this LazyFont.DrawableString.
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
Returns the location this SimpleEntity is mimicking.
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
Find entities with a specific tag near a SectorEntityToken, excluding itself.
getNearbyFleets(SectorEntityToken, float) - Static method in class CampaignUtils
Finds all visible fleets within a certain range around a SectorEntityToken.
getNearbyHostileFleets(SectorEntityToken, float) - Static method in class CampaignUtils
Finds all visible hostile fleets within a certain range around a SectorEntityToken.
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
Find the closest entity with a specifc tag to a SectorEntityToken, excluding itself.
getNearestHostileFleet(SectorEntityToken) - Static method in class CampaignUtils
Find the closest hostile fleet to a SectorEntityToken.
getNearestMissile(CombatEntityAPI) - Static method in class AIUtils
Find the closest visible missile near entity.
getNearestObjective(CombatEntityAPI) - Static method in class AIUtils
Find the closest BattleObjectiveAPI to an entity.
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 Vector2fs.
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.
getText() - Method in class LazyFont.DrawableString
Returns the raw text of this LazyFont.DrawableString, before any word-wrapping is applied.
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
Returns the SimpleEntity.SimpleEntityType corresponding to the constructor used to create this object.
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.
A C D E F G H I J L M N O R S T V W 
Skip navigation links
LazyLib