Newer
Older
JumpingGame / src / Move.java
public class Move {
	private Velocity velocity;
	private Pair<Double> move;

	public Move(Velocity velocity) {
		this.velocity = velocity;
	}

	public void moveY(double y) {
		this.move.setY(y);
		velocity.updateMove(move);
	}

	public void moveX(double x) {
		this.move.setX(x);
	}

	public Pair<Double> getMove() {
		return move;
	}
}