public abstract class IntervalEntitySystem extends EntitySystem
A typical usage would be a collision system or physics system.
Modifier and Type | Field and Description |
---|---|
protected float |
acc
Accumulated delta to keep track of interval.
|
subscription
world
Constructor and Description |
---|
IntervalEntitySystem(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() |
getEntities, inserted, inserted, inserted, removed, removed, removed, setWorld
getEntityIds, getSubscription
begin, dispose, end, getWorld, initialize, isEnabled, process, processSystem, setEnabled
public IntervalEntitySystem(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 © 2016. All rights reserved.