Newer
Older
JumpingGame / src / main / java / entities / Ground.java
package entities;

public class Ground {
    private boolean value = true;


    //---------------------------------------------------------------
    // getter
    public boolean getValue() {
        return value;
    }

    //---------------------------------------------------------------
    //---------------------------------------------------------------
    //
    public void openHole(){
        this.value = false;
    }

    //---------------------------------------------------------------
    //
    public void closeHole(){
        this.value = true;
    }

    //---------------------------------------------------------------
}