public abstract class IntervalSystem extends BaseEntitySystem
| Modifier and Type | Field and Description |
|---|---|
protected float |
acc
Accumulated delta to keep track of interval.
|
subscriptionworld| Constructor and Description |
|---|
IntervalSystem(Aspect.Builder aspect,
float interval)
Creates a new IntervalEntitySystem.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkProcessing()
Does the system desire processing.
|
protected float |
getIntervalDelta()
Gets the actual delta since this system was last processed.
|
protected float |
getTimeDelta() |
getEntityIds, getSubscription, inserted, inserted, removed, removed, setWorldbegin, dispose, end, getWorld, initialize, isEnabled, process, processSystem, setEnabledpublic IntervalSystem(Aspect.Builder aspect, float interval)
aspect - the aspect to match entitiesinterval - the interval at which the system processesprotected boolean checkProcessing()
BaseSystemcheckProcessing in class BaseSystemboth must be true before the system will process.protected float getIntervalDelta()
protected float getTimeDelta()
Copyright © 2019. All rights reserved.