Newer
Older
JumpingGame / src / Onground.java
k-fujii on 6 Sep 2021 332 bytes initial commit
import java.util.*;

public class Onground {
	private Ground ground;
	private Position position;
	public Onground(Ground ground, Position position) {
		this.ground = ground;
		this.position = position;
	}
	public boolean getOnground() {
		return ((this.ground.getGround()==true)&&(this.position.getPosition().getValue()<=0.0));
	}
}