public void letIn(Beggar beggar) { beggar.setBottle(null); beggar.setCell(null); beggar.setTarget(null); game.removeActiveObject(beggar); this.beggar = beggar; }
private void releaseBeggar() { if (beggar == null) return; Beggar beggar = this.beggar; beggar.setCell(entrance); game.registerActiveObject(beggar); this.beggar = null; counter = 0; }