424344454647484950
controllers.add(controller); } } public void addWorld(World world) { GUIWorld guiWorld = controllers.get(world.getId()).createGUIWorld(world); worldsContainer.addWorld(guiWorld); guiWorld.repaint(); }
212223242526272829
TimeEventDispatcher.getInstance().addObserver(this); } public GUIWorld createGUIWorld(World world) { params = world.getParams(); guiWorld = new GUIWorld(params); resetGUIGrid(world); return guiWorld; }