public class PunitiveExpeditionManager extends java.lang.Object implements EveryFrameScript
| Modifier and Type | Class and Description |
|---|---|
static class |
PunitiveExpeditionManager.PunExData |
static class |
PunitiveExpeditionManager.PunExGoal |
static class |
PunitiveExpeditionManager.PunExReason |
static class |
PunitiveExpeditionManager.PunExType |
| Modifier and Type | Field and Description |
|---|---|
static float |
ANGER_BUILDUP_MULT |
static float |
COMPETITION_PRODUCTION_MULT |
protected java.util.LinkedHashMap<FactionAPI,PunitiveExpeditionManager.PunExData> |
data |
static int |
FACTION_MUST_BE_IN_TOP_X_PRODUCERS |
static float |
FREE_PORT_SIZE_MULT |
static float |
ILLEGAL_GOODS_MULT |
static java.lang.String |
KEY |
static int |
MAX_CONCURRENT |
static float |
MAX_THRESHOLD |
static float |
MAX_TIMEOUT |
static int |
MIN_COLONY_SIZE_FOR_NON_TERRITORIAL |
static float |
MIN_TIMEOUT |
protected int |
numSentSinceTimeout |
static float |
PLAYER_FRACTION_TO_NOTICE |
static float |
PROB_TIMEOUT_PER_SENT |
static float |
TARGET_NUMBER_FOR_FREQUENCY |
static float |
TERRITORIAL_ANGER |
protected float |
timeout |
| Constructor and Description |
|---|
PunitiveExpeditionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected void |
checkExpedition(PunitiveExpeditionManager.PunExData curr) |
void |
createExpedition(PunitiveExpeditionManager.PunExData curr) |
void |
createExpedition(PunitiveExpeditionManager.PunExData curr,
java.lang.Integer fpOverride) |
java.util.LinkedHashMap<FactionAPI,PunitiveExpeditionManager.PunExData> |
getData() |
PunitiveExpeditionManager.PunExData |
getDataFor(FactionAPI faction) |
java.util.List<PunitiveExpeditionManager.PunExReason> |
getExpeditionReasons(PunitiveExpeditionManager.PunExData curr) |
float |
getExtraTimeout(PunitiveExpeditionManager.PunExData d) |
static PunitiveExpeditionManager |
getInstance() |
int |
getOngoing() |
boolean |
isDone() |
protected java.lang.Object |
readResolve() |
boolean |
runWhilePaused() |
public static final java.lang.String KEY
public static int MAX_CONCURRENT
public static float PROB_TIMEOUT_PER_SENT
public static float MIN_TIMEOUT
public static float MAX_TIMEOUT
public static int MIN_COLONY_SIZE_FOR_NON_TERRITORIAL
public static float TARGET_NUMBER_FOR_FREQUENCY
public static float ANGER_BUILDUP_MULT
public static int FACTION_MUST_BE_IN_TOP_X_PRODUCERS
public static float PLAYER_FRACTION_TO_NOTICE
public static float MAX_THRESHOLD
protected float timeout
protected int numSentSinceTimeout
protected java.util.LinkedHashMap<FactionAPI,PunitiveExpeditionManager.PunExData> data
public static float COMPETITION_PRODUCTION_MULT
public static float ILLEGAL_GOODS_MULT
public static float FREE_PORT_SIZE_MULT
public static float TERRITORIAL_ANGER
public PunitiveExpeditionManager()
public static PunitiveExpeditionManager getInstance()
protected java.lang.Object readResolve()
public PunitiveExpeditionManager.PunExData getDataFor(FactionAPI faction)
public java.util.LinkedHashMap<FactionAPI,PunitiveExpeditionManager.PunExData> getData()
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.public float getExtraTimeout(PunitiveExpeditionManager.PunExData d)
public int getOngoing()
protected void checkExpedition(PunitiveExpeditionManager.PunExData curr)
public java.util.List<PunitiveExpeditionManager.PunExReason> getExpeditionReasons(PunitiveExpeditionManager.PunExData curr)
public void createExpedition(PunitiveExpeditionManager.PunExData curr)
public void createExpedition(PunitiveExpeditionManager.PunExData curr, java.lang.Integer fpOverride)
public boolean isDone()
isDone in interface EveryFrameScriptpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScript