
mmb.content.ppipe.Direction Maven / Gradle / Ivy
/**
*
*/
package mmb.content.ppipe;
import mmb.NN;
/**
* Defines which way player goes in aplyer pipe
* @author oskar
*
*/
public enum Direction {
/** Forwards */
FWD(0, 1) {
@Override
public Direction reverse() {
return BWD;
}
}
/** Backwards*/
,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 - 2025 Weber Informatics LLC | Privacy Policy