Class BaseEventManager
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseEventManager
- All Implemented Interfaces:
EveryFrameScript
- Direct Known Subclasses:
FactionHostilityManager
,GenericMissionManager
,LuddicPathBaseManager
,PersonBountyManager
,PirateBaseManager
,SystemBountyManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<EveryFrameScript>
protected int
protected Random
protected IntervalUtil
protected IntervalUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActive
(EveryFrameScript event) void
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.boolean
belowMax()
protected abstract EveryFrameScript
int
protected float
int
protected int
protected float
protected abstract int
protected abstract int
int
protected float
boolean
isDone()
protected Object
boolean
protected void
-
Field Details
-
active
-
tracker
-
trackerMax
-
currMax
protected int currMax -
randomBase
-
-
Constructor Details
-
BaseEventManager
public BaseEventManager()
-
-
Method Details
-
updateMax
protected void updateMax() -
readResolve
-
getMinConcurrent
protected abstract int getMinConcurrent() -
getMaxConcurrent
protected abstract int getMaxConcurrent() -
createEvent
-
getUpdateMaxInterval
protected float getUpdateMaxInterval() -
getBaseInterval
protected float getBaseInterval() -
getIntervalRateMult
protected float getIntervalRateMult() -
getHardLimit
protected int getHardLimit() -
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.
-
getActiveCount
public int getActiveCount() -
getOngoing
public int getOngoing() -
getCurrMax
public int getCurrMax() -
belowMax
public boolean belowMax() -
addActive
-
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.
-
getActive
-
getTracker
-