aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/dialogue_file.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/dialogue_file.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/dialogue_file.h')
-rw-r--r--engines/titanic/true_talk/dialogue_file.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/dialogue_file.h b/engines/titanic/true_talk/dialogue_file.h
new file mode 100644
index 0000000000..00bacacbd2
--- /dev/null
+++ b/engines/titanic/true_talk/dialogue_file.h
@@ -0,0 +1,55 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef TITANIC_DIALOGUE_FILE_H
+#define TITANIC_DIALOGUE_FILE_H
+
+#include "common/file.h"
+#include "titanic/support/string.h"
+
+namespace Titanic {
+
+class CDialogueFile {
+ struct CDialogueFileEntry {
+ uint v1;
+ uint v2;
+ };
+ struct EntryRec {
+ uint v1, v2, v3, v4, v5;
+ };
+private:
+ Common::File _file;
+ Common::Array<CDialogueFileEntry> _entries;
+ Common::Array<EntryRec> _data1;
+public:
+ CDialogueFile(const CString &filename, uint count);
+ ~CDialogueFile();
+
+ /**
+ * Clear the loaded data
+ */
+ void clear();
+};
+
+} // End of namespace Titanic
+
+#endif /* TITANIC_TITLE_ENGINE_H */