Newer
Older
JumpingGame / src / Mass.java
import java.util.*;

public class Mass {
	private Acceleration acceleration;
	private double mass;

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

	public void setMass(double x) {
		this.mass = x;
		acceleration.updateMass(mass);
	}

	public double getMass() {
		return mass;
	}
}