aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/npcs/mobile.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-25 22:08:30 -0500
committerPaul Gilbert2016-02-25 22:08:30 -0500
commitf2cb4a6d98d914aa0557f35c84d3052d9739c5d5 (patch)
treef556e61d87a40a3f3e4d3f6def184a170be12fa8 /engines/titanic/npcs/mobile.cpp
parent06ce0dbfddb016dc18ac38bbd938b8b5c71f454a (diff)
downloadscummvm-rg350-f2cb4a6d98d914aa0557f35c84d3052d9739c5d5.tar.gz
scummvm-rg350-f2cb4a6d98d914aa0557f35c84d3052d9739c5d5.tar.bz2
scummvm-rg350-f2cb4a6d98d914aa0557f35c84d3052d9739c5d5.zip
TITANIC: Implement non-TrueTalk character classes
Diffstat (limited to 'engines/titanic/npcs/mobile.cpp')
-rw-r--r--engines/titanic/npcs/mobile.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/engines/titanic/npcs/mobile.cpp b/engines/titanic/npcs/mobile.cpp
new file mode 100644
index 0000000000..37c1d13fee
--- /dev/null
+++ b/engines/titanic/npcs/mobile.cpp
@@ -0,0 +1,46 @@
+/* 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/mobile.h"
+
+namespace Titanic {
+
+CMobile::CMobile() : CCharacter(), _fieldDC(0) {
+}
+
+void CMobile::save(SimpleFile *file, int indent) const {
+ file->writeNumberLine(1, indent);
+ file->writePoint(_pos1, indent);
+ file->writeNumberLine(_fieldDC, indent);
+
+ CCharacter::save(file, indent);
+}
+
+void CMobile::load(SimpleFile *file) {
+ file->readNumber();
+ _pos1 = file->readPoint();
+ _fieldDC = file->readNumber();
+
+ CCharacter::load(file);
+}
+
+} // End of namespace Titanic