net.mostlyoriginal.api.component.map.MapWallSensor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-jam Show documentation
Show all versions of contrib-jam Show documentation
Jam bundle of systems and components!
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