aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/true_talk_manager.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-05 20:28:32 -0400
committerPaul Gilbert2016-07-10 16:38:30 -0400
commit03a8cbaf98fb44dcd4c915f4d8577adaef6b0d7a (patch)
treefae6d79e406b5b972e45d1b6d1c7c3cb8d1f802b /engines/titanic/true_talk/true_talk_manager.h
parentb1290d6dd93f2f442bb9649685a9fa713b14821d (diff)
downloadscummvm-rg350-03a8cbaf98fb44dcd4c915f4d8577adaef6b0d7a.tar.gz
scummvm-rg350-03a8cbaf98fb44dcd4c915f4d8577adaef6b0d7a.tar.bz2
scummvm-rg350-03a8cbaf98fb44dcd4c915f4d8577adaef6b0d7a.zip
TITANIC: Implemented TT manager loadAssets, beginnings of CDialogueFile
Diffstat (limited to 'engines/titanic/true_talk/true_talk_manager.h')
-rw-r--r--engines/titanic/true_talk/true_talk_manager.h19
1 files changed, 14 insertions, 5 deletions
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
@@ -97,6 +106,11 @@ public:
void load(SimpleFile *file);
/**
+ * Clear the manager
+ */
+ void clear();
+
+ /**
* Called when a game is about to be loaded
*/
void preLoad();
@@ -117,11 +131,6 @@ public:
void postSave() {}
/**
- * Called when the view changes
- */
- void viewChange();
-
- /**
* Returns the scripts for the manager
*/
TTScripts &getScripts() { return _scripts; }