Class BallisticRangefinder
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.hullmods.BallisticRangefinder
- All Implemented Interfaces:
HullModEffect
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static float
static float
static float
static float
static float
static float
Fields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostDescriptionSection
(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) ship may be null, will be for modspecs.void
applyEffectsAfterShipCreation
(ShipAPI ship, String id) Effects applied here should NOT affect ship stats as this does not get called from the campaign.void
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) getDescriptionParam
(int index, ShipAPI.HullSize hullSize) static WeaponAPI.WeaponSize
float
getUnapplicableReason
(ShipAPI ship) boolean
isApplicableToShip
(ShipAPI ship) boolean
shouldAddDescriptionToTooltip
(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) ship may be null, will be for modspecs.Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, advanceInCombat, affectsOPCosts, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getSModDescriptionParam, hasSModEffect, hasSModEffectSection, init, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, showInRefitScreenModPickerFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.combat.HullModEffect
applyEffectsAfterShipAddedToCombatEngine, getRequiredItem
-
Field Details
-
BONUS_MAX_1
public static float BONUS_MAX_1 -
BONUS_MAX_2
public static float BONUS_MAX_2 -
BONUS_MAX_3
public static float BONUS_MAX_3 -
BONUS_SMALL_1
public static float BONUS_SMALL_1 -
BONUS_SMALL_2
public static float BONUS_SMALL_2 -
BONUS_SMALL_3
public static float BONUS_SMALL_3 -
BONUS_MEDIUM_3
public static float BONUS_MEDIUM_3 -
HYBRID_MULT
public static float HYBRID_MULT -
HYBRID_BONUS_MIN
public static float HYBRID_BONUS_MIN
-
-
Constructor Details
-
BallisticRangefinder
public BallisticRangefinder()
-
-
Method Details
-
applyEffectsBeforeShipCreation
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) - Specified by:
applyEffectsBeforeShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsBeforeShipCreation
in classBaseHullMod
-
getLargestBallisticSlot
-
applyEffectsAfterShipCreation
Description copied from interface:HullModEffect
Effects applied here should NOT affect ship stats as this does not get called from the campaign. Apply stat changes in applyEffectsBeforeShipCreation() instead, as that does affect the campaign.- Specified by:
applyEffectsAfterShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsAfterShipCreation
in classBaseHullMod
-
getDescriptionParam
- Specified by:
getDescriptionParam
in interfaceHullModEffect
- Overrides:
getDescriptionParam
in classBaseHullMod
-
shouldAddDescriptionToTooltip
public boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
shouldAddDescriptionToTooltip
in interfaceHullModEffect
- Overrides:
shouldAddDescriptionToTooltip
in classBaseHullMod
- Returns:
-
addPostDescriptionSection
public void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
addPostDescriptionSection
in interfaceHullModEffect
- Overrides:
addPostDescriptionSection
in classBaseHullMod
-
getTooltipWidth
public float getTooltipWidth()- Specified by:
getTooltipWidth
in interfaceHullModEffect
- Overrides:
getTooltipWidth
in classBaseHullMod
-
isApplicableToShip
- Specified by:
isApplicableToShip
in interfaceHullModEffect
- Overrides:
isApplicableToShip
in classBaseHullMod
-
getUnapplicableReason
- Specified by:
getUnapplicableReason
in interfaceHullModEffect
- Overrides:
getUnapplicableReason
in classBaseHullMod
-