Class SpecialItemRaidObjectivePluginImpl
java.lang.Object
com.fs.starfarer.api.impl.campaign.graid.BaseGroundRaidObjectivePluginImpl
com.fs.starfarer.api.impl.campaign.graid.SpecialItemRaidObjectivePluginImpl
- All Implemented Interfaces:
GroundRaidObjectivePlugin
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionSpecialItemRaidObjectivePluginImpl
(MarketAPI market, String id, String data, Industry source) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createTooltip
(TooltipMakerAPI t, boolean expanded) int
getData()
int
int
getName()
int
float
getQuantity
(int marines) float
int
getValue
(int marines) boolean
int
performRaid
(CargoAPI loot, Random random, float lootMult, TextPanelAPI text) void
void
Methods inherited from class com.fs.starfarer.api.impl.campaign.graid.BaseGroundRaidObjectivePluginImpl
addIcons, getAssignedForcesColumnColor, getAssignedForcesColumnText, getCommodityIdForDeficitIcons, getDisruptedAlreadyColor, getDisruptedAlreadyString, getDisruptionDaysColor, getDisruptionDaysSort, getDisruptionDaysString, getIconName, getId, getMarinesAssigned, getMarinesRequired, getMarket, getNameOverride, getQuantityColor, getQuantityLooted, getQuantityString, getSource, getSourceString, getTooltipWidth, getValueColor, getValueSortValue, getValueString, getXpGained, isTooltipExpandable, setAssignedForcesColumnColor, setAssignedForcesColumnText, setId, setMarinesAssigned, setMarinesRequired, setMarket, setNameOverride, setQuantityLooted, setXpGained, withContinueBeforeResult
-
Field Details
-
data
-
-
Constructor Details
-
SpecialItemRaidObjectivePluginImpl
-
-
Method Details
-
setSource
- Specified by:
setSource
in interfaceGroundRaidObjectivePlugin
- Overrides:
setSource
in classBaseGroundRaidObjectivePluginImpl
-
getData
-
setData
-
getQuantity
public float getQuantity(int marines) - Specified by:
getQuantity
in classBaseGroundRaidObjectivePluginImpl
-
getValue
public int getValue(int marines) - Specified by:
getValue
in classBaseGroundRaidObjectivePluginImpl
-
getCargoSpaceNeeded
public int getCargoSpaceNeeded()- Specified by:
getCargoSpaceNeeded
in interfaceGroundRaidObjectivePlugin
- Overrides:
getCargoSpaceNeeded
in classBaseGroundRaidObjectivePluginImpl
-
getFuelSpaceNeeded
public int getFuelSpaceNeeded()- Specified by:
getFuelSpaceNeeded
in interfaceGroundRaidObjectivePlugin
- Overrides:
getFuelSpaceNeeded
in classBaseGroundRaidObjectivePluginImpl
-
getProjectedCreditsValue
public int getProjectedCreditsValue() -
getDeficitCaused
public int getDeficitCaused()- Specified by:
getDeficitCaused
in interfaceGroundRaidObjectivePlugin
- Overrides:
getDeficitCaused
in classBaseGroundRaidObjectivePluginImpl
-
getItemSpec
-
getDangerLevel
- Specified by:
getDangerLevel
in interfaceGroundRaidObjectivePlugin
- Overrides:
getDangerLevel
in classBaseGroundRaidObjectivePluginImpl
-
getQuantitySortValue
public float getQuantitySortValue() -
getName
-
getStackForIcon
- Specified by:
getStackForIcon
in interfaceGroundRaidObjectivePlugin
- Overrides:
getStackForIcon
in classBaseGroundRaidObjectivePluginImpl
-
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
-