Class DecivTracker
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.deciv.DecivTracker
- All Implemented Interfaces:
EveryFrameScript
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IntervalUtil
protected LinkedHashMap<MarketAPI,
DecivTracker.MarketDecivData> static final String
static final String
protected Random
protected IntervalUtil
protected TimeoutTracker<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.protected void
protected boolean
checkDeciv
(MarketAPI market) static void
decivilize
(MarketAPI market, boolean fullDestroy) static void
decivilize
(MarketAPI market, boolean fullDestroy, boolean withIntel) getDataFor
(MarketAPI market) static DecivTracker
static int
static float
static int
static float
boolean
isDone()
protected Object
static void
removeColony
(MarketAPI market, boolean withRuins) boolean
static void
sendWarning
(MarketAPI market) protected void
-
Field Details
-
KEY
- See Also:
-
NO_DECIV_KEY
- See Also:
-
decivData
-
sampler
-
checker
-
sentWarning
-
random
-
-
Constructor Details
-
DecivTracker
public DecivTracker()
-
-
Method Details
-
getInstance
-
readResolve
-
advance
public void advance(float amount) Description copied from interface:EveryFrameScript
Use SectorAPI.getClock() to convert to campaign days.- Specified by:
advance
in interfaceEveryFrameScript
- Parameters:
amount
- seconds elapsed during the last frame.
-
getDataFor
-
getMaxMonths
public static int getMaxMonths() -
getMinStreak
public static int getMinStreak() -
getProbPerMonth
public static float getProbPerMonth() -
getMinFraction
public static float getMinFraction() -
updateSamples
protected void updateSamples() -
checkDeciv
protected void checkDeciv() -
checkDeciv
-
decivilize
-
decivilize
-
removeColony
-
sendWarning
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceEveryFrameScript
- Returns:
- true when the script is finished and can be cleaned up by the engine.
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Returns:
- whether advance() should be called while the campaign engine is paused.
-