mmb.content.ppipe.Direction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
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<
/**
*
*/
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();
}