public class TowCable extends java.lang.Object implements HullModEffect
| Modifier and Type | Class and Description |
|---|---|
static class |
TowCable.TowCableBuff |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HULLMOD_ID |
static java.lang.String |
TOW_CABLE_KEY
One instance of the buff object per ship with a Tow Cable.
|
| Constructor and Description |
|---|
TowCable() |
| 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 |
addRequiredItemSection(TooltipMakerAPI tooltip,
FleetMemberAPI member,
ShipVariantAPI currentVariant,
MarketAPI dockedAt,
float width,
boolean isForModSpec) |
void |
addSModEffectSection(TooltipMakerAPI tooltip,
ShipAPI.HullSize hullSize,
ShipAPI ship,
float width,
boolean isForModSpec,
boolean isForBuildInList) |
void |
addSModSection(TooltipMakerAPI tooltip,
ShipAPI.HullSize hullSize,
ShipAPI ship,
float width,
boolean isForModSpec) |
void |
addSModSection(TooltipMakerAPI tooltip,
ShipAPI.HullSize hullSize,
ShipAPI ship,
float width,
boolean isForModSpec,
boolean isForBuildInList) |
void |
advanceInCampaign(FleetMemberAPI member,
float amount)
Not called while paused.
|
void |
advanceInCombat(ShipAPI ship,
float amount)
Not called while paused.
|
boolean |
affectsOPCosts()
Hullmods that return true here should only ever be built-in, as cost changes aren't handled when
these mods can be added or removed to/from the variant.
|
void |
applyEffectsAfterShipCreation(ShipAPI ship,
java.lang.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,
java.lang.String id) |
void |
applyEffectsToFighterSpawnedByShip(ShipAPI fighter,
ShipAPI ship,
java.lang.String id) |
boolean |
canBeAddedOrRemovedNow(ShipAPI ship,
MarketAPI marketOrNull,
CampaignUIAPI.CoreUITradeMode mode)
Ship may be null from autofit.
|
java.awt.Color |
getBorderColor() |
java.lang.String |
getCanNotBeInstalledNowReason(ShipAPI ship,
MarketAPI marketOrNull,
CampaignUIAPI.CoreUITradeMode mode) |
java.lang.String |
getDescriptionParam(int index,
ShipAPI.HullSize hullSize) |
java.lang.String |
getDescriptionParam(int index,
ShipAPI.HullSize hullSize,
ShipAPI ship) |
int |
getDisplayCategoryIndex()
Should return 0 to 4; -1 for "use default".
|
int |
getDisplaySortOrder()
Sort order within the mod's display category.
|
java.awt.Color |
getNameColor() |
java.lang.String |
getSModDescriptionParam(int index,
ShipAPI.HullSize hullSize) |
java.lang.String |
getSModDescriptionParam(int index,
ShipAPI.HullSize hullSize,
ShipAPI ship) |
float |
getTooltipWidth() |
java.lang.String |
getUnapplicableReason(ShipAPI ship) |
boolean |
hasSModEffect() |
boolean |
hasSModEffectSection(ShipAPI.HullSize hullSize,
ShipAPI ship,
boolean isForModSpec) |
void |
init(HullModSpecAPI spec) |
boolean |
isApplicableToShip(ShipAPI ship) |
boolean |
isSModEffectAPenalty() |
boolean |
shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize,
ShipAPI ship,
boolean isForModSpec)
ship may be null, will be for modspecs.
|
boolean |
showInRefitScreenModPickerFor(ShipAPI ship) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyEffectsAfterShipAddedToCombatEngine, getRequiredItempublic static final java.lang.String HULLMOD_ID
public static final java.lang.String TOW_CABLE_KEY
public TowCable()
public void init(HullModSpecAPI spec)
init in interface HullModEffectpublic void advanceInCampaign(FleetMemberAPI member, float amount)
HullModEffectadvanceInCampaign in interface HullModEffectpublic void advanceInCombat(ShipAPI ship, float amount)
HullModEffectadvanceInCombat in interface HullModEffectpublic void applyEffectsAfterShipCreation(ShipAPI ship, java.lang.String id)
HullModEffectapplyEffectsAfterShipCreation in interface HullModEffectpublic void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
applyEffectsBeforeShipCreation in interface HullModEffectpublic boolean isApplicableToShip(ShipAPI ship)
isApplicableToShip in interface HullModEffectpublic java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize)
getDescriptionParam in interface HullModEffectpublic java.lang.String getUnapplicableReason(ShipAPI ship)
getUnapplicableReason in interface HullModEffectpublic boolean affectsOPCosts()
HullModEffectaffectsOPCosts in interface HullModEffectpublic java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize, ShipAPI ship)
getDescriptionParam in interface HullModEffectpublic boolean canBeAddedOrRemovedNow(ShipAPI ship, MarketAPI marketOrNull, CampaignUIAPI.CoreUITradeMode mode)
HullModEffectcanBeAddedOrRemovedNow in interface HullModEffectpublic java.lang.String getCanNotBeInstalledNowReason(ShipAPI ship, MarketAPI marketOrNull, CampaignUIAPI.CoreUITradeMode mode)
getCanNotBeInstalledNowReason in interface HullModEffectpublic boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
HullModEffectshouldAddDescriptionToTooltip in interface HullModEffectpublic void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
HullModEffectaddPostDescriptionSection in interface HullModEffectpublic void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, java.lang.String id)
applyEffectsToFighterSpawnedByShip in interface HullModEffectpublic java.awt.Color getBorderColor()
getBorderColor in interface HullModEffectpublic java.awt.Color getNameColor()
getNameColor in interface HullModEffectpublic int getDisplaySortOrder()
HullModEffectgetDisplaySortOrder in interface HullModEffectpublic int getDisplayCategoryIndex()
HullModEffectgetDisplayCategoryIndex in interface HullModEffectpublic boolean hasSModEffectSection(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
hasSModEffectSection in interface HullModEffectpublic void addSModSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
public void addSModEffectSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec, boolean isForBuildInList)
addSModEffectSection in interface HullModEffectpublic void addSModSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec, boolean isForBuildInList)
addSModSection in interface HullModEffectpublic boolean hasSModEffect()
hasSModEffect in interface HullModEffectpublic java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize)
getSModDescriptionParam in interface HullModEffectpublic java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize, ShipAPI ship)
getSModDescriptionParam in interface HullModEffectpublic float getTooltipWidth()
getTooltipWidth in interface HullModEffectpublic boolean isSModEffectAPenalty()
isSModEffectAPenalty in interface HullModEffectpublic boolean showInRefitScreenModPickerFor(ShipAPI ship)
showInRefitScreenModPickerFor in interface HullModEffectpublic void addRequiredItemSection(TooltipMakerAPI tooltip, FleetMemberAPI member, ShipVariantAPI currentVariant, MarketAPI dockedAt, float width, boolean isForModSpec)
addRequiredItemSection in interface HullModEffect