com.artemis.managers.Manager Maven / Gradle / Ivy
package com.artemis.managers;
import com.artemis.Entity;
import com.artemis.EntityObserver;
import com.artemis.World;
import com.badlogic.gdx.utils.Disposable;
/**
* A parent class for all managers in the World.
*
* @author Arni Arent
*
*/
public abstract class Manager implements EntityObserver, Disposable {
protected World world;
/**
* This method is called during world.initialize().
*/
public void initialize() {
}
/**
* Sets the world this manager belongs to.
*
* @param world Artemis World.
*/
public void setWorld(World world) {
this.world = world;
}
/**
* @return Returns the world the manager belongs to.
*/
protected World getWorld() {
return world;
}
@Override
public void added(Entity e) {
}
@Override
public void changed(Entity e) {
}
@Override
public void deleted(Entity e) {
}
@Override
public void disabled(Entity e) {
}
@Override
public void enabled(Entity e) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy