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

public class Mass {
	private Acceleration acceleration;
	private double value;
	public Mass(Acceleration acceleration) {
		this.acceleration = acceleration;
	}
	public void setValue(double x) {
		this.value = x;
		acceleration.updateMass(value);
	}
	public double getValue() {
		return value;
	}
}