Newer
Older
JumpingGame / src / main / java / entities / Onground.java
k-fujii on 15 Nov 2021 370 bytes entity→entitiesに変更
package entities;

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.getValue() == true) && (this.position.getValue().getSecond() <= 0.0));    }
}