public class CoreImmigrationPluginImpl extends java.lang.Object implements ImmigrationPlugin
| Modifier and Type | Field and Description |
|---|---|
static float |
FACTION_HOSTILITY_IMPACT |
static float |
GROWTH_NO_INDUSTRIES |
static float |
HAZARD_SIZE_MULT |
static float |
IMMIGRATION_PER_HAZARD |
static float |
INCENTIVE_CREDITS_PER_POINT |
static float |
INCENTIVE_POINTS_EXTRA |
protected MarketAPI |
market |
static float |
MAX_DIST_PENALTY |
static float |
ZERO_STABILITY_PENALTY |
| Constructor and Description |
|---|
CoreImmigrationPluginImpl(MarketAPI market) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float days,
boolean uiUpdateOnly)
Only called once every 3 days or thereabouts.
|
protected void |
applyIncentives(PopulationComposition inc,
boolean uiUpdateOnly,
float f) |
PopulationComposition |
computeIncoming(boolean uiUpdateOnly,
float f) |
float |
getFractionForPopulationPoints(float points) |
static float |
getImmigrationHazardPenalty(MarketAPI market) |
static float |
getImmigrationHazardPenaltySizeMult(MarketAPI market) |
float |
getPopulationPointsForFraction(float fraction) |
float |
getWeightForMarketSize(float size) |
static float |
getWeightForMarketSizeStatic(float size) |
void |
increaseMarketSize() |
static void |
increaseMarketSize(MarketAPI market) |
static void |
reduceMarketSize(MarketAPI market) |
public static float GROWTH_NO_INDUSTRIES
public static float IMMIGRATION_PER_HAZARD
public static float HAZARD_SIZE_MULT
public static float INCENTIVE_CREDITS_PER_POINT
public static float INCENTIVE_POINTS_EXTRA
public static final float FACTION_HOSTILITY_IMPACT
public static final float ZERO_STABILITY_PENALTY
public static final float MAX_DIST_PENALTY
public CoreImmigrationPluginImpl(MarketAPI market)
public void advance(float days, boolean uiUpdateOnly)
ImmigrationPluginadvance in interface ImmigrationPluginpublic void increaseMarketSize()
public static void increaseMarketSize(MarketAPI market)
public static void reduceMarketSize(MarketAPI market)
public PopulationComposition computeIncoming(boolean uiUpdateOnly, float f)
public static float getImmigrationHazardPenalty(MarketAPI market)
public static float getImmigrationHazardPenaltySizeMult(MarketAPI market)
protected void applyIncentives(PopulationComposition inc, boolean uiUpdateOnly, float f)
public float getPopulationPointsForFraction(float fraction)
getPopulationPointsForFraction in interface ImmigrationPluginpublic float getFractionForPopulationPoints(float points)
getFractionForPopulationPoints in interface ImmigrationPluginpublic static float getWeightForMarketSizeStatic(float size)
public float getWeightForMarketSize(float size)
getWeightForMarketSize in interface ImmigrationPlugin