Newer
Older
JumpingGameOriginalSources / src / Force.java
import java.util.*;

public class Force {
	private Acceleration acceleration;
	private Pair<Double> value;
	public Force(Acceleration acceleration) {
		this.acceleration = acceleration;
	}
	public void gravity(double y) {
		this.value = new Pair<>(0.0, y);
		acceleration.updateForce(value);
	}
	public Pair<Double> getValue() {
		return value;
	}
}