import java.util.*; public class JumpGame { private Time time = new Time(); private Position position = new Position(); private Gameover gameover = new Gameover(position); private Ground ground = new Ground(position); private Onground onground = new Onground(ground, position); private Velocity velocity = new Velocity(position, onground); private Clear clear = new Clear(position); private Move move = new Move(velocity); private Acceleration acceleration = new Acceleration(velocity, onground); private Force force = new Force(acceleration); private Mass mass = new Mass(acceleration); public void gravity(double y) { this.force.gravity(y); this.time.gravity(y); } public void moveY(double y) { this.move.moveY(y); } public void moveX(double x) { this.move.moveX(x); } public void setMass(double x) { this.mass.setMass(x); } public Vector2 getAcceleration() { return acceleration.getAcceleration(); } public Map.Entry<Double, Double> getMove() { return move.getMove(); } public double getMass() { return mass.getMass(); } public boolean getClear() { return clear.getClear(); } public boolean getGround() { return ground.getGround(); } public Vector2 getForce() { return force.getForce(); } public Vector2 getVelocity() { return velocity.getVelocity(); } public Vector2 getPosition() { return position.getPosition(); } public boolean getOnground() { return onground.getOnground(); } public double getTime() { return time.getTime(); } public boolean getGameover() { return gameover.getGameover(); } }