private void remove_scene_event_listeners(Scene p_scene) { for (Background c_background : p_scene.get_backgrounds()) { c_background.remove_KListener(this); } for (Hotspot c_hotspot : p_scene.get_hotspots()) { c_hotspot.remove_KListener(this); this.remove_KListener((KListener) c_hotspot); } for (KTextbox c_render_q_o : view.get_gui_textbox_list()) { this.remove_KListener(c_render_q_o); } }
public void save_scene() { System.out.println(">> saving scene!"); for (Background c_background : current_scene.get_backgrounds()) { c_background.remove_KListener(this); } for (Hotspot c_hotspot : current_scene.get_hotspots()) { c_hotspot.remove_KListener(this); this.remove_KListener(c_hotspot); } Project_serializer.serialize_scene( current_scene, "scenes/default_scene.ser"); // current_scene.get_name ()); }