Class StabilizeMarketPluginImpl
java.lang.Object
com.fs.starfarer.api.impl.campaign.StabilizeMarketPluginImpl
- All Implemented Interfaces:
StabilizeMarketPlugin
,GenericPluginManagerAPI.GenericPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStabilize
(MarketAPI market) void
createStabilizeButtonTooltip
(TooltipMakerAPI info, float width, boolean expanded, MarketAPI market) int
getCostPerStabilityPoint
(MarketAPI market) int
getHandlingPriority
(Object params) Negative priority means plugin doesn't want to handle whatever the parameters indicate the action is.int
getMaxStabilizeAmount
(MarketAPI market) *Has* to be <= RecentUnrest.getPenalty(market).boolean
boolean
stabilizeButtonHasTooltip
(MarketAPI market)
-
Constructor Details
-
StabilizeMarketPluginImpl
public StabilizeMarketPluginImpl()
-
-
Method Details
-
canStabilize
- Specified by:
canStabilize
in interfaceStabilizeMarketPlugin
-
createStabilizeButtonTooltip
public void createStabilizeButtonTooltip(TooltipMakerAPI info, float width, boolean expanded, MarketAPI market) - Specified by:
createStabilizeButtonTooltip
in interfaceStabilizeMarketPlugin
-
getMaxStabilizeAmount
Description copied from interface:StabilizeMarketPlugin
*Has* to be <= RecentUnrest.getPenalty(market).- Specified by:
getMaxStabilizeAmount
in interfaceStabilizeMarketPlugin
- Returns:
-
getCostPerStabilityPoint
- Specified by:
getCostPerStabilityPoint
in interfaceStabilizeMarketPlugin
-
isStabilizeButtonTooltipExpandable
- Specified by:
isStabilizeButtonTooltipExpandable
in interfaceStabilizeMarketPlugin
-
stabilizeButtonHasTooltip
- Specified by:
stabilizeButtonHasTooltip
in interfaceStabilizeMarketPlugin
-
getHandlingPriority
Description copied from interface:GenericPluginManagerAPI.GenericPlugin
Negative priority means plugin doesn't want to handle whatever the parameters indicate the action is.- Specified by:
getHandlingPriority
in interfaceGenericPluginManagerAPI.GenericPlugin
- Returns:
-