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

net.mostlyoriginal.api.component.map.MapWallSensor Maven / Gradle / Ivy

The newest version!
package net.mostlyoriginal.api.component.map;

import com.artemis.Component;

import java.io.Serializable;

/**
 * Entity detects nearby map surfaces.
 *
 * @author Daan van Yperen
 * @see net.mostlyoriginal.api.system.map.MapWallSensorSystem
 */
public class MapWallSensor extends Component implements Serializable {
    public boolean onFloor = false;
    public boolean onHorizontalSurface = false;
    public boolean onVerticalSurface = false;

    public float wallAngle;

    public boolean onAnySurface() {
        return onHorizontalSurface || onVerticalSurface;
    }

    public MapWallSensor() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy