/** * check to see if the game has been stopped */ public boolean isGameStopped() { if (actor != null) { if (actor == pause || actor == exit) return true; else return false; } else return false; } public void stopGame() { if (isGameStopped() == true) { Greenfoot.stop(); } }

