public class PhaseField extends BaseHullMod implements HullModFleetEffect
| Modifier and Type | Field and Description |
|---|---|
static float |
MIN_CR |
static float |
MIN_FIELD_MULT |
static java.lang.String |
MOD_KEY |
static float |
PROFILE_MULT |
spec| Constructor and Description |
|---|
PhaseField() |
| 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) |
java.lang.String |
getDescriptionParam(int index,
ShipAPI.HullSize hullSize) |
static float[] |
getPhaseFieldMultBaseProfileAndTotal(CampaignFleetAPI fleet,
java.lang.String skipId,
float addProfile,
float addSensor) |
static float |
getTopKValuesSum(float[] arr,
int k) |
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.
|
addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, advanceInCombat, affectsOPCosts, applyEffectsAfterShipCreation, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getSModDescriptionParam, getTooltipWidth, getUnapplicableReason, hasSModEffect, hasSModEffectSection, init, isApplicableToShip, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, showInRefitScreenModPickerForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyEffectsAfterShipAddedToCombatEngine, getRequiredItempublic static float MIN_CR
public static java.lang.String MOD_KEY
public static float PROFILE_MULT
public static float MIN_FIELD_MULT
public PhaseField()
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
applyEffectsBeforeShipCreation in interface HullModEffectapplyEffectsBeforeShipCreation in class BaseHullModpublic java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize)
getDescriptionParam in interface HullModEffectgetDescriptionParam in class BaseHullModpublic void advanceInCampaign(CampaignFleetAPI fleet)
HullModFleetEffectadvanceInCampaign in interface HullModFleetEffectpublic boolean withAdvanceInCampaign()
HullModFleetEffectwithAdvanceInCampaign in interface HullModFleetEffectpublic boolean withOnFleetSync()
HullModFleetEffectwithOnFleetSync in interface HullModFleetEffectpublic void onFleetSync(CampaignFleetAPI fleet)
HullModFleetEffectonFleetSync in interface HullModFleetEffectpublic boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
HullModEffectshouldAddDescriptionToTooltip in interface HullModEffectshouldAddDescriptionToTooltip in class BaseHullModpublic void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
HullModEffectaddPostDescriptionSection in interface HullModEffectaddPostDescriptionSection in class BaseHullModpublic static float[] getPhaseFieldMultBaseProfileAndTotal(CampaignFleetAPI fleet, java.lang.String skipId, float addProfile, float addSensor)
public static float getTopKValuesSum(float[] arr, int k)