public abstract class IntervalSystem extends BaseEntitySystem
Modifier and Type | Field and Description |
---|---|
protected float |
acc
Accumulated delta to keep track of interval.
|
subscription
world
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, setWorld
begin, dispose, end, getWorld, initialize, isEnabled, process, processSystem, setEnabled
public IntervalSystem(Aspect.Builder aspect, float interval)
aspect
- the aspect to match entitiesinterval
- the interval at which the system processesprotected boolean checkProcessing()
BaseSystem
checkProcessing
in class BaseSystem
both must be true before the system will process.
protected float getIntervalDelta()
protected float getTimeDelta()
Copyright © 2019. All rights reserved.