public class CommodityGroundRaidObjectivePluginImpl extends BaseGroundRaidObjectivePluginImpl
| Modifier and Type | Field and Description |
|---|---|
protected CommodityOnMarketAPI |
com |
static float |
ECON_IMPACT_MULT |
static float |
QUANTITY_MULT_DEFICIT |
static float |
QUANTITY_MULT_EXCESS |
static float |
QUANTITY_MULT_NORMAL |
static float |
QUANTITY_MULT_NORMAL_FOR_DEFICIT |
static float |
QUANTITY_MULT_OVERALL |
assignedForcesColumnColor, assignedForcesColumnText, id, marinesAssigned, marinesRequired, market, nameOverride, quantityLooted, source, xpGainedQUANTITY_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 and Description |
|---|
CommodityGroundRaidObjectivePluginImpl(MarketAPI market,
java.lang.String commodityId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIcons(IconGroupAPI iconGroup) |
static Industry |
computeCommoditySource(MarketAPI market,
CommodityOnMarketAPI com) |
void |
createTooltip(TooltipMakerAPI t,
boolean expanded) |
float |
getBaseRaidQuantity(boolean forDeficit) |
int |
getCargoSpaceNeeded() |
java.lang.String |
getCommodityIdForDeficitIcons() |
CommoditySpecAPI |
getCommoditySpec() |
MarketCMD.RaidDangerLevel |
getDangerLevel() |
int |
getDeficitActuallyCaused() |
int |
getDeficitCaused() |
int |
getFuelSpaceNeeded() |
java.lang.String |
getName() |
int |
getProjectedCreditsValue() |
float |
getQuantity(int marines) |
float |
getQuantity(int marines,
boolean forDeficit) |
float |
getQuantitySortValue() |
CargoStackAPI |
getStackForIcon() |
int |
getValue(int marines) |
boolean |
hasTooltip() |
int |
performRaid(CargoAPI loot,
java.util.Random random,
float lootMult,
TextPanelAPI text) |
void |
setDeficitActuallyCaused(int deficitActuallyCaused) |
getAssignedForcesColumnColor, getAssignedForcesColumnText, 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, setSource, setXpGained, withContinueBeforeResultpublic static float ECON_IMPACT_MULT
public static float QUANTITY_MULT_NORMAL
public static float QUANTITY_MULT_NORMAL_FOR_DEFICIT
public static float QUANTITY_MULT_EXCESS
public static float QUANTITY_MULT_DEFICIT
public static float QUANTITY_MULT_OVERALL
protected CommodityOnMarketAPI com
public CommodityGroundRaidObjectivePluginImpl(MarketAPI market, java.lang.String commodityId)
public void addIcons(IconGroupAPI iconGroup)
addIcons in interface GroundRaidObjectivePluginaddIcons in class BaseGroundRaidObjectivePluginImplpublic int getCargoSpaceNeeded()
getCargoSpaceNeeded in interface GroundRaidObjectivePlugingetCargoSpaceNeeded in class BaseGroundRaidObjectivePluginImplpublic int getFuelSpaceNeeded()
getFuelSpaceNeeded in interface GroundRaidObjectivePlugingetFuelSpaceNeeded in class BaseGroundRaidObjectivePluginImplpublic int getProjectedCreditsValue()
public int getDeficitCaused()
getDeficitCaused in interface GroundRaidObjectivePlugingetDeficitCaused in class BaseGroundRaidObjectivePluginImplpublic CommoditySpecAPI getCommoditySpec()
public MarketCMD.RaidDangerLevel getDangerLevel()
getDangerLevel in interface GroundRaidObjectivePlugingetDangerLevel in class BaseGroundRaidObjectivePluginImplpublic float getQuantitySortValue()
public float getQuantity(int marines)
getQuantity in class BaseGroundRaidObjectivePluginImplpublic float getQuantity(int marines, boolean forDeficit)
public int getValue(int marines)
getValue in class BaseGroundRaidObjectivePluginImplpublic float getBaseRaidQuantity(boolean forDeficit)
public static Industry computeCommoditySource(MarketAPI market, CommodityOnMarketAPI com)
public java.lang.String getName()
public CargoStackAPI getStackForIcon()
getStackForIcon in interface GroundRaidObjectivePlugingetStackForIcon in class BaseGroundRaidObjectivePluginImplpublic java.lang.String getCommodityIdForDeficitIcons()
getCommodityIdForDeficitIcons in interface GroundRaidObjectivePlugingetCommodityIdForDeficitIcons in class BaseGroundRaidObjectivePluginImplpublic int performRaid(CargoAPI loot, java.util.Random random, float lootMult, TextPanelAPI text)
public int getDeficitActuallyCaused()
public void setDeficitActuallyCaused(int deficitActuallyCaused)
public boolean hasTooltip()
hasTooltip in interface GroundRaidObjectivePluginhasTooltip in class BaseGroundRaidObjectivePluginImplpublic void createTooltip(TooltipMakerAPI t, boolean expanded)
createTooltip in interface GroundRaidObjectivePlugincreateTooltip in class BaseGroundRaidObjectivePluginImpl