All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.systems.VoidEntitySystem Maven / Gradle / Ivy

package com.artemis.systems;

import com.artemis.Entity;
import com.artemis.Filter;
import com.badlogic.gdx.utils.Array;

/**
 * This system has an empty filter so it processes no entities,
 * but it still gets invoked. You can use this system if you need
 * to execute some game logic and not have to concern
 * yourself about filters or entities.
 * 
 * @author Arni Arent
 *
 */
public abstract class VoidEntitySystem extends EntitySystem {

    public VoidEntitySystem() {
        super(Filter.getEmpty());
    }

    @Override
    protected final void processEntities(Array entities) {
        processSystem();
    }

    /**
     * Processes the system.
     */
    protected abstract void processSystem();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy