public class ConvertedHangar extends BaseHullMod
| Modifier and Type | Field and Description |
|---|---|
static float |
CR_THRESHOLD_UNINSTALLABLE |
static int |
CREW_REQ |
static float |
FIGHTER_OP_PER_DP |
static int |
MIN_DP |
static float |
REARM_TIME_FRACTION |
static float |
REPLACEMENT_TIME_MULT |
static float |
SMOD_CAPITAL |
static float |
SMOD_CRUISER |
spec| Constructor and Description |
|---|
ConvertedHangar() |
| 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 |
applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize,
MutableShipStatsAPI stats,
java.lang.String id) |
void |
applyEffectsToFighterSpawnedByShip(ShipAPI fighter,
ShipAPI ship,
java.lang.String id) |
float |
computeCRMult(float suppliesPerDep,
float dpMod) |
static int |
computeDPModifier(float fighterOPCost) |
static float |
getFighterOPCost(MutableShipStatsAPI stats) |
static SpriteAPI |
getFighterSkin(ShipAPI fighter,
ShipAPI carrier) |
static SpriteAPI |
getFighterSkin(java.lang.String cat,
ShipAPI fighter,
ShipAPI carrier) |
static java.util.List<java.lang.String> |
getFighterWings(MutableShipStatsAPI stats) |
java.lang.String |
getSModDescriptionParam(int index,
ShipAPI.HullSize hullSize,
ShipAPI ship) |
java.lang.String |
getUnapplicableReason(ShipAPI ship) |
boolean |
isApplicableToShip(ShipAPI ship) |
static void |
setFighterSkin(ShipAPI fighter,
ShipAPI carrier) |
boolean |
shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize,
ShipAPI ship,
boolean isForModSpec)
ship may be null, will be for modspecs.
|
addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, advanceInCombat, affectsOPCosts, applyEffectsAfterShipCreation, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getTooltipWidth, hasSModEffect, hasSModEffectSection, init, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, showInRefitScreenModPickerForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyEffectsAfterShipAddedToCombatEngine, getRequiredItempublic static float FIGHTER_OP_PER_DP
public static int MIN_DP
public static float REPLACEMENT_TIME_MULT
public static int CREW_REQ
public static float REARM_TIME_FRACTION
public static float SMOD_CRUISER
public static float SMOD_CAPITAL
public static float CR_THRESHOLD_UNINSTALLABLE
public ConvertedHangar()
public static int computeDPModifier(float fighterOPCost)
public static float getFighterOPCost(MutableShipStatsAPI stats)
public static java.util.List<java.lang.String> getFighterWings(MutableShipStatsAPI stats)
public float computeCRMult(float suppliesPerDep, float dpMod)
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
applyEffectsBeforeShipCreation in interface HullModEffectapplyEffectsBeforeShipCreation in class BaseHullModpublic boolean isApplicableToShip(ShipAPI ship)
isApplicableToShip in interface HullModEffectisApplicableToShip in class BaseHullModpublic java.lang.String getUnapplicableReason(ShipAPI ship)
getUnapplicableReason in interface HullModEffectgetUnapplicableReason in class BaseHullModpublic void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, java.lang.String id)
applyEffectsToFighterSpawnedByShip in interface HullModEffectapplyEffectsToFighterSpawnedByShip in class BaseHullModpublic static void setFighterSkin(ShipAPI fighter, ShipAPI carrier)
public static SpriteAPI getFighterSkin(ShipAPI fighter, ShipAPI carrier)
public static SpriteAPI getFighterSkin(java.lang.String cat, ShipAPI fighter, ShipAPI carrier)
public 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 java.lang.String getSModDescriptionParam(int index, ShipAPI.HullSize hullSize, ShipAPI ship)
getSModDescriptionParam in interface HullModEffectgetSModDescriptionParam in class BaseHullMod