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