public abstract class BaseEventManager extends java.lang.Object implements EveryFrameScript
Modifier and Type | Field and Description |
---|---|
protected java.util.List<EveryFrameScript> |
active |
protected int |
currMax |
protected java.util.Random |
randomBase |
protected IntervalUtil |
tracker |
protected IntervalUtil |
trackerMax |
Constructor and Description |
---|
BaseEventManager() |
Modifier and Type | Method and Description |
---|---|
void |
addActive(EveryFrameScript event) |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
boolean |
belowMax() |
protected abstract EveryFrameScript |
createEvent() |
java.util.List<EveryFrameScript> |
getActive() |
int |
getActiveCount() |
protected float |
getBaseInterval() |
int |
getCurrMax() |
protected int |
getHardLimit() |
protected float |
getIntervalRateMult() |
protected abstract int |
getMaxConcurrent() |
protected abstract int |
getMinConcurrent() |
int |
getOngoing() |
IntervalUtil |
getTracker() |
protected float |
getUpdateMaxInterval() |
boolean |
isDone() |
protected java.lang.Object |
readResolve() |
boolean |
runWhilePaused() |
protected void |
updateMax() |
protected java.util.List<EveryFrameScript> active
protected IntervalUtil tracker
protected IntervalUtil trackerMax
protected int currMax
protected java.util.Random randomBase
protected void updateMax()
protected java.lang.Object readResolve()
protected abstract int getMinConcurrent()
protected abstract int getMaxConcurrent()
protected abstract EveryFrameScript createEvent()
protected float getUpdateMaxInterval()
protected float getBaseInterval()
protected float getIntervalRateMult()
protected int getHardLimit()
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.public int getActiveCount()
public int getOngoing()
public int getCurrMax()
public boolean belowMax()
public void addActive(EveryFrameScript event)
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
public java.util.List<EveryFrameScript> getActive()
public IntervalUtil getTracker()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.