示例#1
0
        /**
         * Updates the data contained in the data control with a new chapter. This
         * method is essential for some undo/redo tools
         *
         * @param chaper
         */
        public void update(Chapter chapter)
        {
            this.chapter = chapter;

            // Create the subcontrollers
            playerDataControl            = new PlayerDataControl(chapter.getPlayer());
            scenesListDataControl        = new ScenesListDataControl(chapter.getObjects <Scene> (), this.getPlayer().getPreviewImage());
            cutscenesListDataControl     = new CutscenesListDataControl(chapter.getObjects <Cutscene> ());
            booksListDataControl         = new BooksListDataControl(chapter.getObjects <Book> ());
            itemsListDataControl         = new ItemsListDataControl(chapter.getObjects <Item> ());
            atrezzoListDataControl       = new AtrezzoListDataControl(chapter.getObjects <Atrezzo> ());
            npcsListDataControl          = new NPCsListDataControl(chapter.getObjects <NPC> ());
            conversationsListDataControl = new ConversationsListDataControl(chapter.getObjects <Conversation> ());
            TimersListDataControl      timersListDataControl       = new TimersListDataControl(chapter.getObjects <Timer> ());
            GlobalStateListDataControl globalStatesListDataControl = new GlobalStateListDataControl(chapter.getObjects <GlobalState> ());
            MacroListDataControl       macrosListDataControl       = new MacroListDataControl(chapter.getObjects <Macro> ());

            advancedFeaturesDataControl = new AdvancedFeaturesDataControl();
            advancedFeaturesDataControl.setTimerListDataControl(timersListDataControl);
            advancedFeaturesDataControl.setGlobalStatesListDataContorl(globalStatesListDataControl);
            advancedFeaturesDataControl.setMacrosListDataControl(macrosListDataControl);
            this.completables = chapter.getCompletabes();
            // assessmentProfilesDataControl = new AssessmentProfilesDataControl(chapter.getAssessmentProfiles());
            //adaptationProfilesDataControl = new AdaptationProfilesDataControl(chapter.getAdaptationProfiles());
        }
示例#2
0
 public void setGlobalStatesListDataContorl(GlobalStateListDataControl globalStatesListDataControl)
 {
     this.globalStatesListDataControl = globalStatesListDataControl;
 }