public abstract class IntervalIteratingSystem extends IntervalSystem
A typical usage would be to regenerate ammo or health at certain intervals, no need to do that every game loop, but perhaps every 100 ms. or every second.
accsubscriptionworld| Constructor and Description |
|---|
IntervalIteratingSystem(Aspect.Builder aspect,
float interval)
Creates a new IntervalEntityProcessingSystem.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
process(int entityId)
Process a entity this system is interested in.
|
protected void |
processSystem()
Process the system.
|
checkProcessing, getIntervalDelta, getTimeDeltagetEntityIds, getSubscription, inserted, inserted, removed, removed, setWorldbegin, dispose, end, getWorld, initialize, isEnabled, process, setEnabledpublic IntervalIteratingSystem(Aspect.Builder aspect, float interval)
aspect - the aspect to match entitiesinterval - the interval at which the system is processedprotected abstract void process(int entityId)
entityId - the entity to processprotected void processSystem()
BaseSystemprocessSystem in class BaseSystemCopyright © 2019. All rights reserved.