From 03a8cbaf98fb44dcd4c915f4d8577adaef6b0d7a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 5 May 2016 20:28:32 -0400 Subject: TITANIC: Implemented TT manager loadAssets, beginnings of CDialogueFile --- engines/titanic/true_talk/true_talk_manager.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'engines/titanic/true_talk/true_talk_manager.h') diff --git a/engines/titanic/true_talk/true_talk_manager.h b/engines/titanic/true_talk/true_talk_manager.h index 5507cf2a4c..a7258c587f 100644 --- a/engines/titanic/true_talk/true_talk_manager.h +++ b/engines/titanic/true_talk/true_talk_manager.h @@ -24,6 +24,7 @@ #define TITANIC_TRUE_TALK_MANAGER_H #include "titanic/support/simple_file.h" +#include "titanic/true_talk/dialogue_file.h" #include "titanic/true_talk/title_engine.h" #include "titanic/true_talk/tt_scripts.h" @@ -39,6 +40,8 @@ private: CTitleEngine _titleEngine; TTScripts _scripts; int _currentCharId; + CDialogueFile *_dialogueFile; + int _field14; private: /** * Loads the statics for the class @@ -69,6 +72,11 @@ private: * Gets the script associated with the current room */ TTRoomScript *getRoomScript() const; + + /** + * Loads assets for the current character, if it's changed + */ + void loadAssets(CTrueTalkNPC *npc, int charId); public: static int _v1; static int _v2; @@ -85,6 +93,7 @@ public: static void setFlags(int index, int val); public: CTrueTalkManager(CGameManager *owner); + ~CTrueTalkManager(); /** * Save the data for the class to file @@ -96,6 +105,11 @@ public: */ void load(SimpleFile *file); + /** + * Clear the manager + */ + void clear(); + /** * Called when a game is about to be loaded */ @@ -116,11 +130,6 @@ public: */ void postSave() {} - /** - * Called when the view changes - */ - void viewChange(); - /** * Returns the scripts for the manager */ -- cgit v1.2.3