Class ShipWeaponsGroundRaidObjectivePluginImpl
java.lang.Object
com.fs.starfarer.api.impl.campaign.graid.BaseGroundRaidObjectivePluginImpl
com.fs.starfarer.api.impl.campaign.graid.ShipWeaponsGroundRaidObjectivePluginImpl
- All Implemented Interfaces:
GroundRaidObjectivePlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
protected CommodityOnMarketAPI
protected CargoAPI
static float
static float
static float
static float
static float
Fields inherited from class com.fs.starfarer.api.impl.campaign.graid.BaseGroundRaidObjectivePluginImpl
assignedForcesColumnColor, assignedForcesColumnText, id, marinesAssigned, marinesRequired, market, nameOverride, quantityLooted, source, xpGained
Fields inherited from interface com.fs.starfarer.api.impl.campaign.graid.GroundRaidObjectivePlugin
QUANTITY_SORT_TIER_0, QUANTITY_SORT_TIER_1, QUANTITY_SORT_TIER_2, QUANTITY_SORT_TIER_3, QUANTITY_SORT_TIER_4, QUANTITY_SORT_TIER_5, XP_GAIN_VALUE_MULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIcons
(IconGroupAPI iconGroup) void
createTooltip
(TooltipMakerAPI t, boolean expanded) float
getName()
int
protected float
getQMult
(int tier) float
getQuantity
(int marines) float
getQuantityString
(int marines) int
getValue
(int marines) getValueString
(int marines) boolean
int
performRaid
(CargoAPI loot, Random random, float lootMult, TextPanelAPI text) Methods inherited from class com.fs.starfarer.api.impl.campaign.graid.BaseGroundRaidObjectivePluginImpl
getAssignedForcesColumnColor, getAssignedForcesColumnText, getCargoSpaceNeeded, getDeficitCaused, getDisruptedAlreadyColor, getDisruptedAlreadyString, getDisruptionDaysColor, getDisruptionDaysSort, getDisruptionDaysString, getFuelSpaceNeeded, getIconName, getId, getMarinesAssigned, getMarinesRequired, getMarket, getNameOverride, getQuantityColor, getQuantityLooted, getSource, getSourceString, getTooltipWidth, getValueColor, getValueSortValue, getXpGained, isTooltipExpandable, setAssignedForcesColumnColor, setAssignedForcesColumnText, setId, setMarinesAssigned, setMarinesRequired, setMarket, setNameOverride, setQuantityLooted, setSource, setXpGained, withContinueBeforeResult
-
Field Details
-
CARGO_SPACE_PER_LARGE
public static float CARGO_SPACE_PER_LARGE -
CARGO_SPACE_PER_MEDIUM
public static float CARGO_SPACE_PER_MEDIUM -
CARGO_SPACE_PER_SMALL
public static float CARGO_SPACE_PER_SMALL -
SELL_MULT
public static float SELL_MULT -
VALUE_NORMAL
public static float VALUE_NORMAL -
VALUE_EXCESS
public static float VALUE_EXCESS -
VALUE_DEFICIT
public static float VALUE_DEFICIT -
VALUE_OVERALL
public static float VALUE_OVERALL -
com
-
looted
-
-
Constructor Details
-
ShipWeaponsGroundRaidObjectivePluginImpl
-
-
Method Details
-
addIcons
- Specified by:
addIcons
in interfaceGroundRaidObjectivePlugin
- Overrides:
addIcons
in classBaseGroundRaidObjectivePluginImpl
-
getProjectedCreditsValue
public int getProjectedCreditsValue() -
getWeaponsCommoditySpec
-
getDangerLevel
- Specified by:
getDangerLevel
in interfaceGroundRaidObjectivePlugin
- Overrides:
getDangerLevel
in classBaseGroundRaidObjectivePluginImpl
-
getQuantitySortValue
public float getQuantitySortValue() -
getQuantityString
- Specified by:
getQuantityString
in interfaceGroundRaidObjectivePlugin
- Overrides:
getQuantityString
in classBaseGroundRaidObjectivePluginImpl
-
getValueString
- Specified by:
getValueString
in interfaceGroundRaidObjectivePlugin
- Overrides:
getValueString
in classBaseGroundRaidObjectivePluginImpl
-
getValue
public int getValue(int marines) - Specified by:
getValue
in classBaseGroundRaidObjectivePluginImpl
-
getQuantity
public float getQuantity(int marines) - Specified by:
getQuantity
in classBaseGroundRaidObjectivePluginImpl
-
getBaseRaidValue
public float getBaseRaidValue() -
getName
-
getStackForIcon
- Specified by:
getStackForIcon
in interfaceGroundRaidObjectivePlugin
- Overrides:
getStackForIcon
in classBaseGroundRaidObjectivePluginImpl
-
getCommodityIdForDeficitIcons
- Specified by:
getCommodityIdForDeficitIcons
in interfaceGroundRaidObjectivePlugin
- Overrides:
getCommodityIdForDeficitIcons
in classBaseGroundRaidObjectivePluginImpl
-
getQMult
protected float getQMult(int tier) -
performRaid
- Returns:
- XP gained
-
hasTooltip
public boolean hasTooltip()- Specified by:
hasTooltip
in interfaceGroundRaidObjectivePlugin
- Overrides:
hasTooltip
in classBaseGroundRaidObjectivePluginImpl
-
createTooltip
- Specified by:
createTooltip
in interfaceGroundRaidObjectivePlugin
- Overrides:
createTooltip
in classBaseGroundRaidObjectivePluginImpl
-
getLooted
-