public class HighResSensors extends BaseLogisticsHullMod implements HullModFleetEffect
Modifier and Type | Field and Description |
---|---|
static float |
MIN_CR |
static java.lang.String |
MOD_KEY |
MAX_MODS
spec
Constructor and Description |
---|
HighResSensors() |
Modifier and Type | Method and Description |
---|---|
void |
addPostDescriptionSection(TooltipMakerAPI tooltip,
ShipAPI.HullSize hullSize,
ShipAPI ship,
float width,
boolean isForModSpec)
ship may be null, will be for modspecs.
|
void |
advanceInCampaign(CampaignFleetAPI fleet)
Called for *every* fleet, even fleets that don't have a ship with the specific hullmod.
|
void |
applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize,
MutableShipStatsAPI stats,
java.lang.String id) |
static float |
getAdjustedHRSModifier(CampaignFleetAPI fleet,
java.lang.String skipId,
float add) |
java.lang.String |
getDescriptionParam(int index,
ShipAPI.HullSize hullSize) |
java.lang.String |
getSModDescriptionParam(int index,
ShipAPI.HullSize hullSize) |
void |
onFleetSync(CampaignFleetAPI fleet)
Called when anything about the fleet composition changes, including hullmod changes.
|
boolean |
shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize,
ShipAPI ship,
boolean isForModSpec)
ship may be null, will be for modspecs.
|
boolean |
withAdvanceInCampaign()
Whether the advanceInCampaign() method should be called for this hullmod.
|
boolean |
withOnFleetSync()
Whether the withOnFleetSync() method should be called for this hullmod.
|
getMax, getNumLogisticsMods, getUnapplicableReason, isApplicableToShip
addSModEffectSection, addSModSection, advanceInCampaign, advanceInCombat, affectsOPCosts, applyEffectsAfterShipCreation, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getTooltipWidth, hasSModEffect, hasSModEffectSection, init, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, showInRefitScreenModPickerFor
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
applyEffectsBeforeShipCreation
in interface HullModEffect
applyEffectsBeforeShipCreation
in class BaseHullMod
public java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize)
getSModDescriptionParam
in interface HullModEffect
getSModDescriptionParam
in class BaseHullMod
public java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize)
getDescriptionParam
in interface HullModEffect
getDescriptionParam
in class BaseHullMod
public void advanceInCampaign(CampaignFleetAPI fleet)
HullModFleetEffect
advanceInCampaign
in interface HullModFleetEffect
public boolean withAdvanceInCampaign()
HullModFleetEffect
withAdvanceInCampaign
in interface HullModFleetEffect
public boolean withOnFleetSync()
HullModFleetEffect
withOnFleetSync
in interface HullModFleetEffect
public void onFleetSync(CampaignFleetAPI fleet)
HullModFleetEffect
onFleetSync
in interface HullModFleetEffect
public boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
HullModEffect
shouldAddDescriptionToTooltip
in interface HullModEffect
shouldAddDescriptionToTooltip
in class BaseHullMod
public void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
HullModEffect
addPostDescriptionSection
in interface HullModEffect
addPostDescriptionSection
in class BaseHullMod
public static float getAdjustedHRSModifier(CampaignFleetAPI fleet, java.lang.String skipId, float add)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.