Class PlayerRelatedPirateBaseManager
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.bases.PlayerRelatedPirateBaseManager
- All Implemented Interfaces:
EveryFrameScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected List<PirateBaseIntel>
static final String
static int
static int
static int
static int
protected IntervalUtil
protected int
protected Random
protected long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.boolean
isDone()
protected StarSystemAPI
pickSystemForPirateBase
(StarSystemAPI initialTarget) protected PirateBaseIntel.PirateBaseTier
pickTier
(StarSystemAPI system) protected void
boolean
-
Field Details
-
KEY
- See Also:
-
MIN_TIMEOUT
public static int MIN_TIMEOUT -
MAX_TIMEOUT
public static int MAX_TIMEOUT -
MIN_TIMEOUT_DESTROYED
public static int MIN_TIMEOUT_DESTROYED -
MAX_TIMEOUT_DESTROYED
public static int MAX_TIMEOUT_DESTROYED -
start
protected long start -
monthlyInterval
-
monthsPlayerColoniesExist
protected int monthsPlayerColoniesExist -
baseCreationTimeout
protected int baseCreationTimeout -
random
-
bases
-
-
Constructor Details
-
PlayerRelatedPirateBaseManager
public PlayerRelatedPirateBaseManager()
-
-
Method Details
-
getInstance
-
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.
-
removeDestroyedBases
protected void removeDestroyedBases() -
addBasesAsNeeded
protected void addBasesAsNeeded() -
pickPirateFaction
-
pickTier
-
pickSystemForPirateBase
-
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.
-