Newer
Older
JumpingGame / src / Mass.java
k-fujii on 6 Sep 2021 312 bytes initial commit
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;
	}
}