import java.util.*; public class Move { private Velocity velocity; private Vector2 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 Vector2 getMove() { return move; } }