public interface HullModEffect
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 |
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,
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) |
void init(HullModSpecAPI spec)
void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
void applyEffectsAfterShipCreation(ShipAPI ship, java.lang.String id)
ship
- id
- java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize)
java.lang.String getDescriptionParam(int index, ShipAPI.HullSize hullSize, ShipAPI ship)
void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, java.lang.String id)
boolean isApplicableToShip(ShipAPI ship)
java.lang.String getUnapplicableReason(ShipAPI ship)
boolean canBeAddedOrRemovedNow(ShipAPI ship, MarketAPI marketOrNull, CampaignUIAPI.CoreUITradeMode mode)
ship
- marketOrNull
- mode
- java.lang.String getCanNotBeInstalledNowReason(ShipAPI ship, MarketAPI marketOrNull, CampaignUIAPI.CoreUITradeMode mode)
void advanceInCampaign(FleetMemberAPI member, float amount)
member
- amount
- void advanceInCombat(ShipAPI ship, float amount)
ship
- amount
- boolean affectsOPCosts()
boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
hullSize
- ship
- isForModSpec
- void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
tooltip
- hullSize
- ship
- width
- isForModSpec
- java.awt.Color getBorderColor()
java.awt.Color getNameColor()
int getDisplaySortOrder()
int getDisplayCategoryIndex()
boolean hasSModEffectSection(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec)
void addSModSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec, boolean isForBuildInList)
void addSModEffectSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec, boolean isForBuildInList)
boolean hasSModEffect()
java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize)
java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize, ShipAPI ship)
float getTooltipWidth()
boolean isSModEffectAPenalty()
boolean showInRefitScreenModPickerFor(ShipAPI ship)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.