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

games.rednblack.editor.renderer.components.ZIndexComponent Maven / Gradle / Ivy

The newest version!
package games.rednblack.editor.renderer.components;

import com.artemis.PooledComponent;

public class ZIndexComponent  extends PooledComponent {
    private int zIndex = 0;
    public boolean needReOrder = false;
    public String layerName = "";
    public int layerIndex;

    public int getZIndex() {
        return zIndex;
    }

    public void setZIndex(int zIndex) {
        this.zIndex = zIndex;
        needReOrder = true;
    }

    public int getGlobalZIndex() {
        return layerIndex + zIndex;
    }

    @Override
    public void reset() {
        zIndex = 0;
        needReOrder = false;
        layerName = "";
        layerIndex = 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy