public class StabilizeMarketPluginImpl extends java.lang.Object implements StabilizeMarketPlugin
Constructor and Description |
---|
StabilizeMarketPluginImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canStabilize(MarketAPI market) |
void |
createStabilizeButtonTooltip(TooltipMakerAPI info,
float width,
boolean expanded,
MarketAPI market) |
int |
getCostPerStabilityPoint(MarketAPI market) |
int |
getHandlingPriority(java.lang.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 |
isStabilizeButtonTooltipExpandable(MarketAPI market) |
boolean |
stabilizeButtonHasTooltip(MarketAPI market) |
public boolean canStabilize(MarketAPI market)
canStabilize
in interface StabilizeMarketPlugin
public void createStabilizeButtonTooltip(TooltipMakerAPI info, float width, boolean expanded, MarketAPI market)
createStabilizeButtonTooltip
in interface StabilizeMarketPlugin
public int getMaxStabilizeAmount(MarketAPI market)
StabilizeMarketPlugin
getMaxStabilizeAmount
in interface StabilizeMarketPlugin
public int getCostPerStabilityPoint(MarketAPI market)
getCostPerStabilityPoint
in interface StabilizeMarketPlugin
public boolean isStabilizeButtonTooltipExpandable(MarketAPI market)
isStabilizeButtonTooltipExpandable
in interface StabilizeMarketPlugin
public boolean stabilizeButtonHasTooltip(MarketAPI market)
stabilizeButtonHasTooltip
in interface StabilizeMarketPlugin
public int getHandlingPriority(java.lang.Object params)
GenericPluginManagerAPI.GenericPlugin
getHandlingPriority
in interface GenericPluginManagerAPI.GenericPlugin
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.