|
static List< Token > | tokenize (String string) |
|
static String | ucFirst (String str) |
|
static String | lcFirst (String str) |
|
static String | replaceTokensFromMemory (String text, Map< String, MemoryAPI > memoryMap) |
|
static float | getDistance (SectorEntityToken from, SectorEntityToken to) |
|
static float | getDistanceLY (SectorEntityToken from, SectorEntityToken to) |
|
static float | getDistance (Vector2f v1, Vector2f v2) |
|
static float | getDistanceSq (Vector2f v1, Vector2f v2) |
|
static float | getDistance (float x1, float y1, float x2, float y2) |
|
static float | getDistanceToPlayerLY (Vector2f locInHyper) |
|
static float | getDistanceToPlayerLY (SectorEntityToken other) |
|
static float | getDistanceLY (Vector2f v1, Vector2f v2) |
|
static float | getRounded (float in) |
|
static String | getRoundedValue (float value) |
|
static float | getRoundedValueFloat (float value) |
|
static String | getRoundedValueMaxOneAfterDecimal (float value) |
|
static String | getRoundedValueOneAfterDecimalIfNotWhole (float value) |
|
static float | logOfBase (float base, float num) |
|
static Vector2f | getPointAtRadius (Vector2f from, float r) |
|
static Vector2f | getPointAtRadius (Vector2f from, float r, Random random) |
|
static Vector2f | getPointWithinRadius (Vector2f from, float r) |
|
static Vector2f | getPointWithinRadius (Vector2f from, float r, Random random) |
|
static Vector2f | getPointWithinRadiusUniform (Vector2f from, float r, Random random) |
|
static Vector2f | getPointWithinRadiusUniform (Vector2f from, float minR, float maxR, Random random) |
|
static float | getSnapshotFPLost (CampaignFleetAPI fleet) |
|
static List< FleetMemberAPI > | getSnapshotMembersLost (CampaignFleetAPI fleet) |
|
static CampaignEventPlugin | startEvent (CampaignEventTarget eventTarget, String eventId, Object params) |
|
static Color | getStoryDarkBrighterColor () |
|
static Color | getStoryDarkColor () |
|
static Color | getStoryBrightColor () |
|
static Color | getStoryOptionColor () |
|
static Color | getHighlightedOptionColor () |
|
static Color | getHighlightColor () |
|
static Color | getDarkHighlightColor () |
|
static Color | getTooltipTitleAndLightHighlightColor () |
|
static Color | getNegativeHighlightColor () |
|
static Color | getBallisticMountColor () |
|
static Color | getMissileMountColor () |
|
static Color | getEnergyMountColor () |
|
static Color | getPositiveHighlightColor () |
|
static Color | getGrayColor () |
|
static Color | getBrightPlayerColor () |
|
static Color | getBasePlayerColor () |
|
static Color | getDarkPlayerColor () |
|
static Color | getTextColor () |
|
static Color | getButtonTextColor () |
|
static float | getUnitsPerLightYear () |
|
static float | getProfitMarginFlat () |
|
static float | getProfitMarginMult () |
|
static float | getEconomyInterval () |
|
static float | getGenericRollingAverageFactor () |
|
static IntervalUtil | createEconIntervalTracker () |
|
static String | getAndJoined (List< String > strings) |
|
static String | getAndJoined (String ... strings) |
|
static String | getJoined (String joiner, List< String > strings) |
|
static String | getJoined (String joiner, String ... strings) |
|
static List< CampaignFleetAPI > | findNearbyFleets (SectorEntityToken from, float maxRange, FleetFilter filter) |
|
static List< CampaignFleetAPI > | getFleetsInOrNearSystem (StarSystemAPI system) |
|
static List< MarketAPI > | getMarketsInLocation (LocationAPI location, String factionId) |
|
static MarketAPI | getBiggestMarketInLocation (LocationAPI location) |
|
static List< MarketAPI > | getMarketsInLocation (LocationAPI location) |
|
static List< MarketAPI > | getFactionMarkets (FactionAPI faction, String econGroup) |
|
static List< MarketAPI > | getPlayerMarkets (boolean includeNonPlayerFaction) |
|
static List< StarSystemAPI > | getPlayerSystems (boolean includeNonPlayerFaction) |
|
static List< StarSystemAPI > | getSystemsWithPlayerColonies (boolean includeNonPlayerFaction) |
|
static List< MarketAPI > | getFactionMarkets (String factionId) |
|
static List< MarketAPI > | getFactionMarkets (FactionAPI faction) |
|
static List< MarketAPI > | getNearbyMarkets (Vector2f locInHyper, float distLY) |
|
static int | getNumHostileMarkets (FactionAPI faction, SectorEntityToken from, float maxDist) |
|
static List< StarSystemAPI > | getNearbyStarSystems (SectorEntityToken token, float maxRangeLY) |
|
static StarSystemAPI | getNearbyStarSystem (SectorEntityToken token, float maxRangeLY) |
|
static StarSystemAPI | getNearestStarSystem (SectorEntityToken token) |
|
static StarSystemAPI | getNearbyStarSystem (SectorEntityToken token) |
|
static boolean | showRuleDialog (SectorEntityToken entity, String initialTrigger) |
|
static float | getAngleInDegreesStrict (Vector2f v) |
|
static float | getAngleInDegreesStrict (Vector2f from, Vector2f to) |
|
static float | getAngleInDegrees (Vector2f v) |
|
static float | getAngleInDegrees (Vector2f from, Vector2f to) |
|
static Vector2f | normalise (Vector2f v) |
|
static float | normalizeAngle (float angleDeg) |
|
static MarketAPI | findNearestLocalMarket (SectorEntityToken token, float maxDist, MarketFilter filter) |
|
static List< MarketAPI > | findNearbyLocalMarkets (SectorEntityToken token, float maxDist, MarketFilter filter) |
|
static MarketAPI | findNearestLocalMarketWithSameFaction (final SectorEntityToken token, float maxDist) |
|
static Vector2f | getUnitVector (Vector2f from, Vector2f to) |
|
static Vector2f | getUnitVectorAtDegreeAngle (float degrees) |
|
static Vector2f | rotateAroundOrigin (Vector2f v, float angle) |
|
static Vector2f | rotateAroundOrigin (Vector2f v, float angle, Vector2f origin) |
|
static boolean | isBetween (float one, float two, float check) |
|
static float | getShieldedCargoFraction (CampaignFleetAPI fleet) |
|
static Color | interpolateColor (Color from, Color to, float progress) |
|
static Color | genColor (Color min, Color max, Random random) |
|
static Vector2f | interpolateVector (Vector2f from, Vector2f to, float progress) |
|
static float | interpolate (float from, float to, float progress) |
|
static Color | scaleColor (Color color, float factor) |
|
static Color | scaleColorOnly (Color color, float factor) |
|
static Color | scaleAlpha (Color color, float factor) |
|
static Color | setAlpha (Color color, int alpha) |
|
static float | getSizeNum (HullSize size) |
|
static void | unsetAll (String prefix, String memKey, MemoryAPI memory) |
|
static float | getTargetingRadius (Vector2f from, CombatEntityAPI target, boolean considerShield) |
|
static float | getClosingSpeed (Vector2f p1, Vector2f p2, Vector2f v1, Vector2f v2) |
|
static DecimalFormat | getFormat () |
|
static String | getWithDGS (float num) |
|
static String | getDGSCredits (float num) |
|
static Vector2f | getInterceptPointBasic (SectorEntityToken from, SectorEntityToken to) |
|
static boolean | setFlagWithReason (MemoryAPI memory, String flagKey, String reason, boolean value, float expire) |
|
static boolean | flagHasReason (MemoryAPI memory, String flagKey, String reason) |
|
static void | clearFlag (MemoryAPI memory, String flagKey) |
|
static void | makeLowRepImpact (CampaignFleetAPI fleet, String reason) |
|
static void | makeNoRepImpact (CampaignFleetAPI fleet, String reason) |
|
static void | makeHostile (CampaignFleetAPI fleet) |
|
static void | makeHostileToPlayerTradeFleets (CampaignFleetAPI fleet) |
|
static void | makeHostileToAllTradeFleets (CampaignFleetAPI fleet) |
|
static void | makeNonHostileToFaction (CampaignFleetAPI fleet, String factionId, float dur) |
|
static void | makeNonHostileToFaction (CampaignFleetAPI fleet, String factionId, boolean nonHostile, float dur) |
|
static void | makeHostileToFaction (CampaignFleetAPI fleet, String factionId, float dur) |
|
static void | makeHostileToFaction (CampaignFleetAPI fleet, String factionId, boolean hostile, float dur) |
|
static boolean | isFleetMadeHostileToFaction (CampaignFleetAPI fleet, FactionAPI faction) |
|
static boolean | isFleetMadeHostileToFaction (CampaignFleetAPI fleet, String factionId) |
|
static void | makeNotLowRepImpact (CampaignFleetAPI fleet, String reason) |
|
static String | getAgoStringForTimestamp (long timestamp) |
|
static String | getDetailedAgoString (long timestamp) |
|
static String | getAtLeastStringForDays (int days) |
|
static String | getStringForDays (int days) |
|
static float | getBurnLevelForSpeed (float speed) |
|
static float | getFractionalBurnLevelForSpeed (float speed) |
|
static float | getSpeedForBurnLevel (float burnLevel) |
|
static float | getFuelPerDay (CampaignFleetAPI fleet, float burnLevel) |
|
static float | getFuelPerDayAtSpeed (CampaignFleetAPI fleet, float speed) |
|
static float | getLYPerDayAtBurn (CampaignFleetAPI fleet, float burnLevel) |
|
static float | getLYPerDayAtSpeed (CampaignFleetAPI fleet, float speed) |
|
static float | getDistance (Vector3f v1, Vector3f v2) |
|
static float | getAngleDiff (float from, float to) |
|
static boolean | isInArc (float direction, float arc, Vector2f from, Vector2f to) |
|
static boolean | isInArc (float direction, float arc, float test) |
|
static SectorEntityToken | addNebulaFromPNG (String image, float centerX, float centerY, LocationAPI location, String category, String key, int tilesWide, int tilesHigh, StarAge age) |
|
static SectorEntityToken | addNebulaFromPNG (String image, float centerX, float centerY, LocationAPI location, String category, String key, int tilesWide, int tilesHigh, String terrainType, StarAge age) |
|
static void | renderQuad (float x, float y, float width, float height, Color color, float alphaMult) |
|
static float | distanceFromLineToPoint (Vector2f p1, Vector2f p2, Vector2f p3) |
|
static Vector2f | closestPointOnLineToPoint (Vector2f p1, Vector2f p2, Vector2f p3) |
|
static Vector2f | closestPointOnSegmentToPoint (Vector2f p1, Vector2f p2, Vector2f p3) |
|
static boolean | isPointInBounds (Vector2f p1, List< Vector2f > bounds) |
|
static Vector2f | intersectSegments (Vector2f a1, Vector2f a2, Vector2f b1, Vector2f b2) |
|
static Vector2f | intersectLines (Vector2f a1, Vector2f a2, Vector2f b1, Vector2f b2) |
|
static Vector2f | intersectSegmentAndCircle (Vector2f p1, Vector2f p2, Vector2f p3, float r) |
|
static boolean | areSegmentsCoincident (Vector2f a1, Vector2f a2, Vector2f b1, Vector2f b2) |
|
static Vector2f | getPerp (Vector2f v) |
|
static float | getClosestTurnDirection (float facing, float desired) |
|
static float | getClosestTurnDirection (float facing, Vector2f from, Vector2f to) |
|
static float | getClosestTurnDirection (Vector2f one, Vector2f two) |
|
static Vector2f | getDiff (Vector2f v1, Vector2f v2) |
|
static MarketAPI | getSourceMarket (CampaignFleetAPI fleet) |
|
static SectorEntityToken | getSourceEntity (CampaignFleetAPI fleet) |
|
static float | getSpawnChanceMult (Vector2f locInHyper) |
|
static Vector2f | pickHyperLocationNotNearPlayer (Vector2f from, float minDist) |
|
static Vector2f | pickLocationNotNearPlayer (LocationAPI where, Vector2f from, float minDist) |
|
static float | getBattleJoinRange () |
|
static void | wiggle (Vector2f v, float max) |
|
static boolean | isPlayerOrCombinedPlayerPrimary (CampaignFleetAPI fleet) |
|
static boolean | isPlayerOrCombinedContainingPlayer (CampaignFleetAPI fleet) |
|
static AsteroidSource | getAsteroidSource (SectorEntityToken asteroid) |
|
static void | setAsteroidSource (SectorEntityToken asteroid, AsteroidSource source) |
|
static void | clearAsteroidSource (SectorEntityToken asteroid) |
|
static boolean | isFastStart () |
|
static boolean | isFastStartExplorer () |
|
static boolean | isFastStartMerc () |
|
static boolean | isEasy () |
|
static boolean | isNormal () |
|
static CampaignTerrainAPI | getHyperspaceTerrain () |
|
static HyperspaceTerrainPlugin | getHyperspaceTerrainPlugin () |
|
static boolean | isInAbyss (Vector2f loc) |
|
static boolean | isInAbyss (SectorEntityToken entity) |
|
static float | getAbyssalDepth (Vector2f loc) |
|
static List< StarSystemAPI > | getAbyssalSystems () |
|
static float | getAbyssalDepthOfPlayer () |
|
static float | getAbyssalDepth (SectorEntityToken entity) |
|
static boolean | isInsideBlackHole (CampaignFleetAPI fleet, boolean includeEventHorizon) |
|
static StarCoronaTerrainPlugin | getCoronaFor (PlanetAPI star) |
|
static MagneticFieldTerrainPlugin | getMagneticFieldFor (PlanetAPI planet) |
|
static PulsarBeamTerrainPlugin | getPulsarFor (PlanetAPI star) |
|
static boolean | hasPulsar (StarSystemAPI system) |
|
static String | getCommissionFactionId () |
|
static FactionAPI | getCommissionFaction () |
|
static FactionCommissionIntel | getCommissionIntel () |
|
static boolean | caresAboutPlayerTransponder (CampaignFleetAPI fleet) |
|
static ShipAPI | findClosestShipEnemyOf (ShipAPI ship, Vector2f locFromForSorting, HullSize smallestToNote, float maxRange, boolean considerShipRadius) |
|
static ShipAPI | findClosestShipEnemyOf (ShipAPI ship, Vector2f locFromForSorting, HullSize smallestToNote, float maxRange, boolean considerShipRadius, FindShipFilter filter) |
|
static< T extends Enum< T > T | mapToEnum (JSONObject json, String key, Class< T > enumType, T defaultOption) throws JSONException |
|
static< T extends Enum< T > T | mapToEnum (JSONObject json, String key, Class< T > enumType, T defaultOption, boolean required) throws JSONException |
|
static Color | getColor (JSONObject json, String key) throws JSONException |
|
static Color | optColor (JSONObject json, String key, Color defaultValue) throws JSONException |
|
static Vector2f | getVector (JSONObject json, String arrayKey, Vector2f def) throws JSONException |
|
static Vector2f | getVector (JSONObject json, String arrayKey) throws JSONException |
|
static Vector3f | getVector3f (JSONObject json, String arrayKey) throws JSONException |
|
static Vector2f | optVector (JSONObject json, String arrayKey) |
|
static Vector3f | optVector3f (JSONObject json, String arrayKey) throws JSONException |
|
static Vector2f | getVector (JSONObject json, String arrayKey, int index) throws JSONException |
|
static void | normalizeNoise (float[][] noise) |
|
static float[][] | initNoise (Random random, int w, int h, float spikes) |
|
static void | genFractalNoise (Random random, float[][] noise, int x1, int y1, int x2, int y2, int iter, float spikes) |
|
static float | computeAngleSpan (float radius, float range) |
|
static float | computeAngleRadius (float angle, float range) |
|
static float | approach (float curr, float dest, float minSpeed, float diffSpeedMult, float amount) |
|
static void | cleanBuffer (Buffer toBeDestroyed) |
|
static float | getFleetwideTotalStat (CampaignFleetAPI fleet, String dynamicMemberStatId) |
|
static float | getFleetwideTotalMod (CampaignFleetAPI fleet, String dynamicMemberStatId, float base) |
|
static float | getFleetwideTotalMod (CampaignFleetAPI fleet, String dynamicMemberStatId, float base, ShipAPI ship) |
|
static String | getStarId (PlanetAPI planet) |
|
static SurveyLevel | getMinSystemSurveyLevel (StarSystemAPI system) |
|
static boolean | hasAnySurveyDataFor (StarSystemAPI system) |
|
static void | setAllPlanetsKnown (String systemName) |
|
static void | setAllPlanetsKnown (StarSystemAPI system) |
|
static void | setAllPlanetsSurveyed (StarSystemAPI system, boolean setRuinsExplored) |
|
static void | generatePlanetConditions (String systemName, StarAge age) |
|
static void | generatePlanetConditions (StarSystemAPI system, StarAge age) |
|
static int | getEstimatedOrbitIndex (PlanetAPI planet) |
|
static Random | getRandom (long seed, int level) |
|
static void | addSurveyDataFor (PlanetAPI planet, TextPanelAPI text) |
|
static void | setFullySurveyed (MarketAPI market, TextPanelAPI text, boolean withNotification) |
|
static void | setPreliminarySurveyed (MarketAPI market, TextPanelAPI text, boolean withNotification) |
|
static void | setSeen (MarketAPI market, TextPanelAPI text, boolean withNotification) |
|
static String | getStringWithTokenReplacement (String format, SectorEntityToken entity, Map< String, MemoryAPI > memoryMap) |
|
static void | renderQuadAlpha (float x, float y, float width, float height, Color color, float alphaMult) |
|
static void | fadeAndExpire (SectorEntityToken entity) |
|
static void | fadeAndExpire (final SectorEntityToken entity, final float seconds) |
|
static void | fadeInOutAndExpire (final SectorEntityToken entity, final float in, final float dur, final float out) |
|
static void | fadeIn (final SectorEntityToken entity, final float in) |
|
static CustomCampaignEntityAPI | addCargoPods (LocationAPI where, Vector2f loc) |
|
static SectorEntityToken | addDebrisField (LocationAPI loc, DebrisFieldParams params, Random random) |
|
static boolean | isUnboardable (FleetMemberAPI member) |
|
static boolean | isUnboardable (ShipHullSpecAPI hullSpec) |
|
static boolean | isShipRecoverable (FleetMemberAPI member, CampaignFleetAPI recoverer, boolean own, boolean useOfficerRecovery, float chanceMult) |
|
static JumpPointAPI | findNearestJumpPointTo (SectorEntityToken entity) |
|
static JumpPointAPI | findNearestJumpPointTo (SectorEntityToken entity, boolean allowWormhole) |
|
static JumpPointAPI | findNearestJumpPointThatCouldBeExitedFrom (SectorEntityToken entity) |
|
static SectorEntityToken | findNearestPlanetTo (SectorEntityToken entity, boolean requireGasGiant, boolean allowStars) |
|
static final boolean | shouldConvertFromStub (LocationAPI containingLocation, Vector2f location) |
|
static long | genRandomSeed () |
|
static long | seedUniquifier () |
|
static String | genUID () |
|
static String | colorsToString (List< Color > colors) |
|
static List< Color > | colorsFromString (String in) |
|
static JumpPointAPI | getJumpPointTo (PlanetAPI star) |
|
static JumpPointAPI | findNearestJumpPoint (SectorEntityToken from) |
|
static String | getDHullId (ShipHullSpecAPI spec) |
|
static HullModSpecAPI | getMod (String id) |
|
static float | getDistanceFromArc (float direction, float arc, float angle) |
|
static void | initConditionMarket (PlanetAPI planet) |
|
static void | initEconomyMarket (PlanetAPI planet) |
|
static String | getSurveyLevelString (SurveyLevel level, boolean withBrackets) |
|
static void | setDefenderOverride (SectorEntityToken entity, DefenderDataOverride override) |
|
static void | setSalvageSpecial (SectorEntityToken entity, Object data) |
|
static void | setPrevSalvageSpecial (SectorEntityToken entity, Object data) |
|
static Object | getSalvageSpecial (SectorEntityToken entity) |
|
static Object | getPrevSalvageSpecial (SectorEntityToken entity) |
|
static List< StarSystemAPI > | getSystemsInRange (SectorEntityToken from, Set< StarSystemAPI > exclude, boolean nonEmpty, float maxRange) |
|
static PlanetAPI | getPulsarInSystem (StarSystemAPI system) |
|
static boolean | systemHasPlanets (StarSystemAPI system) |
|
static float | getCampaignShipScaleMult (HullSize size) |
|
static WeightedRandomPicker< String > | createStringPicker (Object ... params) |
|
static WeightedRandomPicker< String > | createStringPicker (Random random, Object ... params) |
|
static void | setWarningBeaconGlowColor (SectorEntityToken beacon, Color color) |
|
static void | setWarningBeaconPingColor (SectorEntityToken beacon, Color color) |
|
static void | setWarningBeaconColors (SectorEntityToken beacon, Color glow, Color ping) |
|
static List< CampaignFleetAPI > | getNearbyFleets (SectorEntityToken from, float maxDist) |
|
static List< CampaignFleetAPI > | getVisibleFleets (SectorEntityToken from, boolean includeSensorContacts) |
|
static boolean | isSameCargo (CargoAPI baseOne, CargoAPI baseTwo) |
|
static JumpPointAPI | getDistressJumpPoint (StarSystemAPI system) |
|
static void | clearTarget (CampaignFleetAPI fleet, boolean forgetTransponder) |
|
static void | giveStandardReturnToSourceAssignments (CampaignFleetAPI fleet) |
|
static boolean | isFleetReturningToDespawn (CampaignFleetAPI fleet) |
|
static void | giveStandardReturnToSourceAssignments (CampaignFleetAPI fleet, boolean withClear) |
|
static void | giveStandardReturnAssignments (CampaignFleetAPI fleet, SectorEntityToken where, String text, boolean withClear) |
|
static void | adjustRep (float repChangeFaction, RepLevel limit, String factionId, float repChangePerson, RepLevel personLimit, PersonAPI person, TextPanelAPI text) |
|
static void | interruptAbilitiesWithTag (CampaignFleetAPI fleet, String tag) |
|
static Vector2f | getInterceptPoint (CampaignFleetAPI from, SectorEntityToken to) |
|
static Vector2f | getInterceptPoint (SectorEntityToken from, SectorEntityToken to, float maxSpeedFrom) |
|
static void | stopPlayerFleet () |
|
static String | getListOfResources (Map< String, Integer > res, List< String > quantities) |
|
static void | setColor (Color color) |
|
static void | setColor (Color color, float alphaMult) |
|
static void | setColor (Color color, int alpha) |
|
static boolean | doesMarketHaveMissionImportantPeopleOrIsMarketMissionImportant (SectorEntityToken entity) |
|
static void | makeImportant (SectorEntityToken entity, String reason) |
|
static void | makeImportant (SectorEntityToken entity, String reason, float dur) |
|
static void | makeImportant (PersonAPI person, String reason) |
|
static void | makeImportant (PersonAPI person, String reason, float dur) |
|
static void | makeImportant (MemoryAPI memory, String reason) |
|
static void | makeImportant (MemoryAPI memory, String reason, float dur) |
|
static boolean | isImportantForReason (MemoryAPI memory, String reason) |
|
static void | makeUnimportant (SectorEntityToken entity, String reason) |
|
static void | makeUnimportant (PersonAPI person, String reason) |
|
static void | makeUnimportant (MemoryAPI memory, String reason) |
|
static void | cleanUpMissionMemory (MemoryAPI memory, String prefix) |
|
static void | clearAreaAroundPlayer (float minDist) |
|
static long | getSalvageSeed (SectorEntityToken entity) |
|
static long | getSalvageSeed (SectorEntityToken entity, boolean nonRandom) |
|
static long | getNameBasedSeed (SectorEntityToken entity) |
|
static void | forgetAboutTransponder (CampaignFleetAPI fleet) |
|
static void | setAbandonedStationMarket (String marketId, SectorEntityToken station) |
|
static float | getDesiredMoveDir (CampaignFleetAPI fleet) |
|
static boolean | isPermaKnowsWhoPlayerIs (CampaignFleetAPI fleet) |
|
static ImmigrationPlugin | getImmigrationPlugin (MarketAPI market) |
|
static AICoreAdminPlugin | getAICoreAdminPlugin (String commodityId) |
|
static AICoreOfficerPlugin | getAICoreOfficerPlugin (String commodityId) |
|
static AbandonMarketPlugin | getAbandonMarketPlugin (MarketAPI market) |
|
static StabilizeMarketPlugin | getStabilizeMarketPlugin (MarketAPI market) |
|
static FleetInflater | getInflater (CampaignFleetAPI fleet, Object params) |
|
static boolean | playerHasStorageAccess (MarketAPI market) |
|
static float | getMarketSizeProgress (MarketAPI market) |
|
static float | getStorageFeeFraction () |
|
static int | getStorageCostPerMonth (MarketAPI market) |
|
static SubmarketPlugin | getStorage (MarketAPI market) |
|
static SubmarketPlugin | getLocalResources (MarketAPI market) |
|
static CargoAPI | getStorageCargo (MarketAPI market) |
|
static CargoAPI | getLocalResourcesCargo (MarketAPI market) |
|
static float | getStorageTotalValue (MarketAPI market) |
|
static float | getStorageCargoValue (MarketAPI market) |
|
static float | getStorageShipValue (MarketAPI market) |
|
static boolean | addStorageInfo (TooltipMakerAPI tooltip, Color color, Color dark, MarketAPI market, boolean includeLocalResources, boolean addSectionIfEmpty) |
|
static String | getTokenReplaced (String in, SectorEntityToken entity) |
|
static float | getOutpostPenalty () |
|
static float | getAdminSalary (PersonAPI admin) |
|
static float | getOfficerSalary (PersonAPI officer) |
|
static float | getOfficerSalary (PersonAPI officer, boolean mercenary) |
|
static String | getHullIdForVariantId (String variantId) |
|
static int | getFPForVariantId (String variantId) |
|
static FactionPersonalityPickerPlugin | getFactionPersonalityPicker () |
|
static float | getAdjustedStrength (float fp, MarketAPI market) |
|
static float | getAdjustedFP (float fp, MarketAPI market) |
|
static float | getShipQuality (MarketAPI market) |
|
static float | getShipQuality (MarketAPI market, String factionId) |
|
static ShipPickMode | getShipPickMode (MarketAPI market) |
|
static ShipPickMode | getShipPickMode (MarketAPI market, String factionId) |
|
static boolean | isBusy (CampaignFleetAPI fleet) |
|
static SectorEntityToken | getStationEntity (MarketAPI market, CampaignFleetAPI fleet) |
|
static CampaignFleetAPI | getStationFleet (MarketAPI market) |
|
static CampaignFleetAPI | getStationFleet (SectorEntityToken station) |
|
static CampaignFleetAPI | getStationBaseFleet (MarketAPI market) |
|
static CampaignFleetAPI | getStationBaseFleet (SectorEntityToken station) |
|
static MarketAPI | getStationMarket (CampaignFleetAPI station) |
|
static Industry | getStationIndustry (MarketAPI market) |
|
static boolean | isActiveModule (ShipVariantAPI variant) |
|
static boolean | isActiveModule (ShipAPI ship) |
|
static void | addCreditsMessage (String format, int credits) |
|
static Vector2f | getSystemJumpPointHyperExitLocation (JumpPointAPI jp) |
|
static boolean | isNear (SectorEntityToken entity, Vector2f hyperLoc) |
|
static float | getDays (float amount) |
|
static float | getProbabilityMult (float desired, float current, float deviationMult) |
|
static boolean | isHyperspaceAnchor (SectorEntityToken entity) |
|
static StarSystemAPI | getStarSystemForAnchor (SectorEntityToken anchor) |
|
static void | showCost (TextPanelAPI text, Color color, Color dark, String[] res, int[] quantities) |
|
static void | showCost (TextPanelAPI text, String title, boolean withAvailable, Color color, Color dark, String[] res, int[] quantities) |
|
static void | showCost (TextPanelAPI text, String title, boolean withAvailable, float widthOverride, Color color, Color dark, String[] res, int[] quantities, boolean[] consumed) |
|
static boolean | isPlayerFactionSetUp () |
|
static boolean | isPatrol (CampaignFleetAPI fleet) |
|
static boolean | isSmuggler (CampaignFleetAPI fleet) |
|
static boolean | isTrader (CampaignFleetAPI fleet) |
|
static boolean | isPirate (CampaignFleetAPI fleet) |
|
static boolean | isScavenger (CampaignFleetAPI fleet) |
|
static boolean | isRaider (CampaignFleetAPI fleet) |
|
static boolean | isWarFleet (CampaignFleetAPI fleet) |
|
static Pair< SectorEntityToken, CampaignFleetAPI > | getNearestStationInSupportRange (CampaignFleetAPI from) |
|
static boolean | isStationInSupportRange (CampaignFleetAPI fleet, CampaignFleetAPI station) |
|
static float | getMemberStrength (FleetMemberAPI member) |
|
static float | getMemberStrength (FleetMemberAPI member, boolean withHull, boolean withQuality, boolean withCaptain) |
|
static void | increaseMarketHostileTimeout (MarketAPI market, float days) |
|
static void | removeRadioChatter (MarketAPI market) |
|
static Color | getDesignTypeColor (String designType) |
|
static Color | getDesignTypeColorDim (String designType) |
|
static LabelAPI | addDesignTypePara (TooltipMakerAPI tooltip, String design, float pad) |
|
static float | getFleetRadiusTerrainEffectMult (CampaignFleetAPI fleet) |
|
static float | getBurnMultForTerrain (CampaignFleetAPI fleet) |
|
static void | addHitGlow (LocationAPI location, Vector2f loc, Vector2f vel, float size, Color color) |
|
static void | addHitGlow (LocationAPI location, Vector2f loc, Vector2f vel, float size, float dur, Color color) |
|
static ParticleControllerAPI[] | addGlowyParticle (LocationAPI location, Vector2f loc, Vector2f vel, float size, float rampUp, float dur, Color color) |
|
static int | getShippingCapacity (MarketAPI market, boolean inFaction) |
|
static String | getStrengthDesc (float strAdjustedFP) |
|
static boolean | isMilitary (MarketAPI market) |
|
static boolean | hasHeavyIndustry (MarketAPI market) |
|
static boolean | hasOrbitalStation (MarketAPI market) |
|
static FactionAPI | getClaimingFaction (SectorEntityToken planet) |
|
static int | computeTotalShutdownRefund (MarketAPI market) |
|
static int | computeShutdownRefund (MarketAPI market, Industry industry) |
|
static SectorEntityToken | addWarningBeacon (SectorEntityToken center, OrbitGap gap, String beaconTag) |
|
static CoreUITradeMode | getTradeMode (MemoryAPI memory) |
|
static boolean | isSpacerStart () |
|
static Industry | getSpaceport (MarketAPI market) |
|
static Color | setBrightness (Color color, int brightness) |
|
static Color | scaleColorSaturate (Color color, float factor) |
|
static int | getMaxOfficers (CampaignFleetAPI fleet) |
|
static int | getNumNonMercOfficers (CampaignFleetAPI fleet) |
|
static List< OfficerDataAPI > | getMercs (CampaignFleetAPI fleet) |
|
static int | getMaxIndustries (MarketAPI market) |
|
static int | getNumIndustries (MarketAPI market) |
|
static int | getNumImprovedIndustries (MarketAPI market) |
|
static int | getNumStableLocations (StarSystemAPI system) |
|
static Industry | getCurrentlyBeingConstructed (MarketAPI market) |
|
static Color | getRelColor (float rel) |
|
static MusicPlayerPlugin | getMusicPlayerPlugin () |
|
static int | getDangerLevel (CampaignFleetAPI fleet) |
|
static float | getHitGlowSize (float baseSize, float baseDamage, ApplyDamageResultAPI result) |
|
static float | getHitGlowSize (float baseSize, float baseDamage, DamageType type, float sd, float ad, float hd, float ed) |
|
static int | getNumEliteSkills (PersonAPI person) |
|
static boolean | isMentored (PersonAPI person) |
|
static void | setMentored (PersonAPI person, boolean mentored) |
|
static boolean | isMercenary (PersonAPI person) |
|
static void | setMercHiredNow (PersonAPI person) |
|
static float | getMercDaysSinceHired (PersonAPI person) |
|
static void | setMercenary (PersonAPI person, boolean mercenary) |
|
static boolean | isUnremovable (PersonAPI person) |
|
static void | setUnremovable (PersonAPI person, boolean unremovable) |
|
static boolean | isAutomated (MutableShipStatsAPI stats) |
|
static boolean | isAutomated (FleetMemberAPI member) |
|
static boolean | isAutomated (ShipVariantAPI variant) |
|
static boolean | isAutomated (ShipAPI ship) |
|
static Set< String > | getAllowedRecoveryTags () |
|
static int | getMaxPermanentMods (ShipAPI ship) |
|
static int | getMaxPermanentMods (FleetMemberAPI member, MutableCharacterStatsAPI stats) |
|
static float | getBuildInBonusXP (HullModSpecAPI mod, HullSize size) |
|
static int | getOPCost (HullModSpecAPI mod, HullSize size) |
|
static boolean | isSpecialMod (ShipVariantAPI variant, HullModSpecAPI spec) |
|
static boolean | hasSModdableBuiltIns (ShipVariantAPI variant) |
|
static int | getCurrSpecialMods (ShipVariantAPI variant) |
|
static List< HullModSpecAPI > | getCurrSpecialModsList (ShipVariantAPI variant) |
|
static boolean | isSlowMoving (CampaignFleetAPI fleet) |
|
static int | getGoSlowBurnLevel (CampaignFleetAPI fleet) |
|
static void | applyDamage (FleetMemberAPI member, Random random, FleetMemberDamageLevel level, boolean withCRDamage, String crDamageId, String crDamageReason, boolean withMessage, TextPanelAPI textPanel, String messageText) |
|
static void | applyDamage (FleetMemberAPI member, Random random, float damageMult, boolean withCRDamage, String crDamageId, String crDamageReason, boolean withMessage, TextPanelAPI textPanel, String messageText) |
|
static float | getBonusXPForRecovering (FleetMemberAPI member) |
|
static float[] | getBonusXPForScuttling (FleetMemberAPI member) |
|
static float | getSpawnFPMult (CampaignFleetAPI fleet) |
|
static void | setSpawnFPMult (CampaignFleetAPI fleet, float mult) |
|
static boolean | isDecentralized (FactionAPI faction) |
|
static String | getPersonalityName (PersonAPI person) |
|
static void | setRaidedTimestamp (MarketAPI market) |
|
static float | getDaysSinceLastRaided (MarketAPI market) |
|
static int | computeEconUnitChangeFromTradeModChange (CommodityOnMarketAPI com, int quantity) |
|
static void | affectAvailabilityWithinReason (CommodityOnMarketAPI com, int quantity) |
|
static boolean | isOpenlyPopulated (StarSystemAPI system) |
|
static boolean | hasAtLeastOneOfTags (Collection< String > tags, String ... other) |
|
static boolean | hasUnexploredRuins (MarketAPI market) |
|
static boolean | hasRuins (MarketAPI market) |
|
static boolean | hasFarmland (MarketAPI market) |
|
static void | addDefeatTrigger (CampaignFleetAPI fleet, String trigger) |
|
static void | removeDefeatTrigger (CampaignFleetAPI fleet, String trigger) |
|
static List< String > | getDefeatTriggers (CampaignFleetAPI fleet, boolean createIfNecessary) |
|
static void | clearDefeatTriggersIfNeeded (CampaignFleetAPI fleet) |
|
static boolean | shouldShowDamageFloaty (ShipAPI source, ShipAPI target) |
|
static boolean | canCheckVram () |
|
static int | getVramFreeKB () |
|
static int | getVramMaximumKB () |
|
static int | getVramDedicatedKB () |
|
static int | getVramUsedKB () |
|
static void | playSound (ApplyDamageResultAPI result, Vector2f loc, Vector2f vel, String lightShields, String solidShields, String heavyShields, String lightHull, String solidHull, String heavyHull) |
|
static float | getShipWeight (ShipAPI ship) |
|
static float | getShipWeight (ShipAPI ship, boolean adjustForNonCombat) |
|
static float | getIncapacitatedTime (ShipAPI ship) |
|
static boolean | isAvoidingPlayerHalfheartedly (CampaignFleetAPI fleet) |
|
static boolean | isPirateFaction (FactionAPI faction) |
|
static String | getAOrAnFor (String word) |
|
static void | moveToMarket (PersonAPI person, MarketAPI destination, boolean alwaysAddToCommDirectory) |
|
static void | makeStoryCritical (String marketId, String reason) |
|
static void | makeStoryCritical (MarketAPI market, String reason) |
|
static void | makeStoryCritical (MemoryAPI memory, String reason) |
|
static void | makeNonStoryCritical (MarketAPI market, String reason) |
|
static void | makeNonStoryCritical (MemoryAPI memory, String reason) |
|
static boolean | isStoryCritical (MarketAPI market) |
|
static boolean | isStoryCritical (MemoryAPI memory) |
|
static boolean | isInsignificant (CampaignFleetAPI fleet) |
|
static boolean | shouldNotWantRunFromPlayerEvenIfWeaker (CampaignFleetAPI fleet) |
|
static float | findKth (float[] arr, int k) |
|
static float | getAdjustedBaseRange (float base, ShipAPI ship, WeaponAPI weapon) |
|
static Vector2f | bezier (Vector2f p0, Vector2f p1, Vector2f p2, float t) |
|
static Vector2f | bezierCubic (Vector2f p0, Vector2f p1, Vector2f p2, Vector2f p3, float t) |
|
static boolean | isInsideSlipstream (Vector2f loc, float radius) |
|
static boolean | isInsideSlipstream (Vector2f loc, float radius, LocationAPI location) |
|
static boolean | isInsideSlipstream (SectorEntityToken entity) |
|
static boolean | isOutsideSector (Vector2f loc) |
|
static boolean | crossesAnySlipstream (LocationAPI location, Vector2f from, Vector2f to) |
|
static void | computeCoreWorldsExtent () |
|
static Vector2f | getCoreMin () |
|
static Vector2f | getCoreMax () |
|
static Vector2f | getCoreCenter () |
|
static boolean | turnTowardsPointV2 (MissileAPI missile, Vector2f point, float angVel) |
|
static boolean | turnTowardsFacingV2 (MissileAPI missile, float desiredFacing, float relativeAngVel) |
|
static int | getUntrustwortyCount () |
|
static void | incrUntrustwortyCount () |
|
static ReputationAdjustmentResult | adjustRep (PersonAPI person, float delta, TextPanelAPI text) |
|
static ReputationAdjustmentResult | adjustRep (PersonAPI person, float delta, RepLevel limit, TextPanelAPI text) |
|
static ReputationAdjustmentResult | adjustRep (PersonAPI person, float delta, RepLevel limit, TextPanelAPI text, boolean addMessageOnNoChange, boolean withMessage) |
|
static ReputationAdjustmentResult | adjustRep (String factionId, float delta, TextPanelAPI text) |
|
static ReputationAdjustmentResult | adjustRep (String factionId, float delta, RepLevel limit, TextPanelAPI text) |
|
static ReputationAdjustmentResult | adjustRep (String factionId, float delta, RepLevel limit, TextPanelAPI text, boolean addMessageOnNoChange, boolean withMessage) |
|
static String | getHullSizeStr (HullSize size) |
|
static float | getColorDist (Color one, Color two) |
|
static boolean | isFringe (SectorEntityToken entity) |
|
static boolean | isFringe (StarSystemAPI system) |
|
static boolean | isFringe (Vector2f loc) |
|
static float | getFringeFactor (Vector2f loc) |
|
static boolean | isHiddenBase (MarketAPI market) |
|
static boolean | isReversePolarity (SectorEntityToken entity) |
|
static String | genEntityCatalogId (CatalogEntryType type) |
|
static String | genEntityCatalogId (int cycleOverride, int monthOverride, int dayOverride, CatalogEntryType type) |
|
static String | genEntityCatalogId (String firstChar, int cycleOverride, int monthOverride, int dayOverride, CatalogEntryType type) |
|