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

net.mostlyoriginal.api.manager.AbstractEntityFactorySystem Maven / Gradle / Ivy

The newest version!
package net.mostlyoriginal.api.manager;

import com.artemis.BaseSystem;
import com.artemis.Entity;
import com.badlogic.gdx.maps.MapProperties;

/**
 * Extend this system for entity instancing.
 *
 * @author Daan van Yperen
 */
public abstract class AbstractEntityFactorySystem extends BaseSystem {

    /**
     * Instance entity archetype.
     *
     * @param entity entity archetype to instance.
     * @param cx x spawn location
     * @param cy y spawn location
     * @param properties map of map properties.
     * @return main instanced entity.
     */
    public abstract Entity createEntity(String entity, int cx, int cy, MapProperties properties);

    @Override
    protected void processSystem() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy