diff options
author | Paul Gilbert | 2016-03-11 22:55:14 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-03-11 22:55:14 -0500 |
commit | e68e8334ed1d0516d68e19a716ca0feeed6c3de1 (patch) | |
tree | 41da2fb457864ad93b347fc69bf3e6e90f5e3312 /engines/titanic/npcs | |
parent | 0fead6fe565d6e4a70adc1ab2273b55026e07655 (diff) | |
download | scummvm-rg350-e68e8334ed1d0516d68e19a716ca0feeed6c3de1.tar.gz scummvm-rg350-e68e8334ed1d0516d68e19a716ca0feeed6c3de1.tar.bz2 scummvm-rg350-e68e8334ed1d0516d68e19a716ca0feeed6c3de1.zip |
TITANIC: Beginnings of True Talk scripts hierarchy
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r-- | engines/titanic/npcs/true_talk_manager.cpp | 77 | ||||
-rw-r--r-- | engines/titanic/npcs/true_talk_manager.h | 65 |
2 files changed, 0 insertions, 142 deletions
diff --git a/engines/titanic/npcs/true_talk_manager.cpp b/engines/titanic/npcs/true_talk_manager.cpp deleted file mode 100644 index dbf97128a7..0000000000 --- a/engines/titanic/npcs/true_talk_manager.cpp +++ /dev/null @@ -1,77 +0,0 @@ -/* 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. - * - */ - -#include "titanic/npcs/true_talk_manager.h" - -namespace Titanic { - -int CTrueTalkManager::_v1; -int CTrueTalkManager::_v2; -int CTrueTalkManager::_v3; -bool CTrueTalkManager::_v4; -bool CTrueTalkManager::_v5; -int CTrueTalkManager::_v6; -int CTrueTalkManager::_v7; -bool CTrueTalkManager::_v8; -int CTrueTalkManager::_v9; -bool CTrueTalkManager::_v10; -int CTrueTalkManager::_v11[41]; - -CTrueTalkManager::CTrueTalkManager(CGameManager *owner) : _gameManager(owner) { -} - -void CTrueTalkManager::save(SimpleFile *file) const { - -} - -void CTrueTalkManager::load(SimpleFile *file) { - loadStatics(file); - - int count = file->readNumber(); - //TODO -} - -void CTrueTalkManager::loadStatics(SimpleFile *file) { - int count = file->readNumber(); - _v1 = file->readNumber(); - _v2 = file->readNumber(); - _v3 = file->readNumber(); - _v4 = file->readNumber() != 0; - _v5 = file->readNumber() != 0; - _v6 = file->readNumber(); - _v7 = file->readNumber(); - _v8 = file->readNumber() != 0; - _v9 = file->readNumber(); - _v10 = file->readNumber() != 0; - - for (int idx = count; count > 10; --idx) - file->readNumber(); - - int count2 = file->readNumber(); - for (int idx = 0; idx < count2; ++idx) { - int v = file->readNumber(); - if (idx < 41) - _v11[idx] = v; - } -} - -} // End of namespace Titanic diff --git a/engines/titanic/npcs/true_talk_manager.h b/engines/titanic/npcs/true_talk_manager.h deleted file mode 100644 index d491a61dab..0000000000 --- a/engines/titanic/npcs/true_talk_manager.h +++ /dev/null @@ -1,65 +0,0 @@ -/* 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_TRUE_TALK_MANAGER_H -#define TITANIC_TRUE_TALK_MANAGER_H - -#include "titanic/simple_file.h" - -namespace Titanic { - -class CGameManager; - -class CTrueTalkManager { -private: - void loadStatics(SimpleFile *file); -public: - static int _v1; - static int _v2; - static int _v3; - static bool _v4; - static bool _v5; - static int _v6; - static int _v7; - static bool _v8; - static int _v9; - static bool _v10; - static int _v11[41]; -public: - CGameManager *_gameManager; -public: - CTrueTalkManager(CGameManager *owner); - - /** - * Save the data for the class to file - */ - void save(SimpleFile *file) const; - - /** - * Load the data for the class from file - */ - void load(SimpleFile *file); -}; - -} // End of namespace Titanic - -#endif /* TITANIC_TRUE_TALK_MANAGER_H */ |