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.
accworld| Constructor and Description |
|---|
IntervalEntityProcessingSystem(Aspect 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(ImmutableBag<Entity> entities)
Any implementing entity system must implement this method and the logic
to process the given entities of the system.
|
checkProcessingadded, added, begin, changed, changed, check, deleted, deleted, disabled, dispose, enabled, end, getActives, initialize, inserted, isEnabled, isPassive, process, removed, setEnabled, setPassive, setWorldpublic IntervalEntityProcessingSystem(Aspect 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 processEntities(ImmutableBag<Entity> entities)
EntitySystemprocessEntities in class EntitySystementities - the entities this system contains.Copyright © 2014. All Rights Reserved.