import java.util.*;
public class Onground {
private Ground ground;
private Position position;
public Onground(Ground ground, Position position) {
this.ground = ground;
this.position = position;
}
//AND
public boolean getOnground() {
if (!this.ground.getGround())
return false;
return (this.position.getPosition().getValue() <= 0.0);
}
}