Newer
Older
JumpingGame / src / Force.java
public class Force {
	private Acceleration acceleration;
	private Pair<Double> force;

	public Force(Acceleration acceleration) {
		this.acceleration = acceleration;
	}

	public void gravity(double y) {
		this.force.setX(y);
		acceleration.updateForce(force);
	}

	public Pair<Double> getForce() {
		return force;
	}
}