public abstract class IntervalEntityProcessingSystem extends IntervalEntitySystem
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 |
|---|
IntervalEntityProcessingSystem(Aspect.Builder aspect,
float interval)
Creates a new IntervalEntityProcessingSystem.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
process(Entity e)
Process a entity this system is interested in.
|
protected void |
processEntities(Bag<Entity> entities) |
protected void |
processSystem()
Process the system.
|
checkProcessing, getIntervalDelta, getTimeDeltagetEntities, inserted, inserted, inserted, removed, removed, removed, setWorldgetEntityIds, getSubscriptionbegin, dispose, end, getWorld, initialize, isEnabled, process, setEnabledpublic IntervalEntityProcessingSystem(Aspect.Builder aspect, float interval)
aspect - the aspect to match entitiesinterval - the interval at which the system is processedprotected abstract void process(Entity e)
e - the entity to processprotected void processSystem()
BaseSystemprocessSystem in class BaseSystemCopyright © 2019. All rights reserved.