if (notice instanceof EViewChangeEvent){
EViewChangeEvent change = (EViewChangeEvent) notice;
switch (change) {
case DISPLAY_NEW_SP:
for (Iterator<RenderablePart> iter = iterator(); iter.hasNext();) {
RenderablePart part = iter.next();
if (part instanceof NewGameView){
part.setEnabled(true);
} else {
part.setEnabled(false);
}
}
break;
case START_GAME:
LinkedList<RenderablePart> startupParts = new LinkedList<RenderablePart>();
for (Iterator<RenderablePart> iter = iterator(); iter.hasNext();) {
RenderablePart part = iter.next();
startupParts.add(part);
}
MainGameView mainGame = new MainGameView(getBounds(),client);
mainGame.setEnabled(true);
addPart(mainGame);