core/src/de/lksbhm/mona/tutorials/p00/AbstractTutorial.java
/**
	 * 
	 * 
	 * Works around issues with concurrent modification exceptions, e.g. when in
	 * a listener call the next part is to be made visible and making it visible
	 * registers a new listener
	 */
Works around issues with concurrent modification exceptions, e.g. when in
a listener call the next part is to be made visible and making it visible
registers a new listener
Works around issues with concurrent modification exceptions e . g . when in a listener call the next part is to be made visible and making it visible registers a new listener
public void moveToNextPart() {
		currentPart = currentPart.next();
		applyCurrentPartAction.restart();
		if (overlay.hasParent()) {
			content.addAction(Actions.sequence(Actions.alpha(0, .6f),
					applyCurrentPartAction, Actions.alpha(1, .6f)));
		} else {
			overlay.addAction(Actions.sequence(Actions.alpha(0),
					applyCurrentPartAction, Actions.alpha(1, .6f)));
			AbstractLevelScreen<?> view = getLevel().getView();
			view.getStage().addActor(overlay);
		}
	}
public void moveToNextPart ( ) { currentPart = currentPart . next ( ) ; applyCurrentPartAction . restart ( ) ; if ( overlay . hasParent ( ) ) { content . addAction ( Actions . sequence ( Actions . alpha ( 0 , .6f ) , applyCurrentPartAction , Actions . alpha ( 1 , .6f ) ) ) ; } else { overlay . addAction ( Actions . sequence ( Actions . alpha ( 0 ) , applyCurrentPartAction , Actions . alpha ( 1 , .6f ) ) ) ; AbstractLevelScreen < ? > view = getLevel ( ) . getView ( ) ; view . getStage ( ) . addActor ( overlay ) ; } }