Newer
Older
JumpingGame / src / main / java / entities / Movex.java
package entities;

public class Movex {
	private Velocity velocity;
	private double value;
	public Movex(Velocity velocity) {
		this.velocity = velocity;
	}
	public void run(double x2) {
		this.value = x2;
		velocity.updateMovex(value);
	}
	public double getValue() {
		return value;
	}
}