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

mmb.content.ppipe.Direction Maven / Gradle / Ivy

Go to download

Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world. THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
package mmb.content.ppipe;

import mmb.NN;

/**
 * @author oskar
 *
 */
public enum Direction {
	FWD(0, 1) {
		@Override
		public Direction reverse() {
			return BWD;
		}
	},BWD(1, -1) {
		@Override
		public Direction reverse() {
			return FWD;
		}
	};
	
	/**
	 * The percentage of offset at entry
	 */
	public final double entry;
	/**
	 * The motion mutiplier
	 */
	public final double mul;
	Direction(double e, double m){
		entry = e;
		mul = m;
	}
	
	/**
	 * @return this direction reversed
	 */
	@NN public abstract Direction reverse();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy