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; } //--------------------------------------------------------------- }