aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/dragonsphere/globals_dragonsphere.cpp
diff options
context:
space:
mode:
authorStrangerke2015-10-22 21:22:37 +0200
committerStrangerke2015-10-22 21:22:37 +0200
commit2856020c37fd6d216a7be74545d2ac6619124c35 (patch)
treec6d13ba2d489fa8377b30ac187a8afcc4b0a7cac /engines/mads/dragonsphere/globals_dragonsphere.cpp
parent9bb46f2af335077bced3efca4fd67c20e8b9d009 (diff)
downloadscummvm-rg350-2856020c37fd6d216a7be74545d2ac6619124c35.tar.gz
scummvm-rg350-2856020c37fd6d216a7be74545d2ac6619124c35.tar.bz2
scummvm-rg350-2856020c37fd6d216a7be74545d2ac6619124c35.zip
MADS: Dragon: Add generic scene for group 1
Diffstat (limited to 'engines/mads/dragonsphere/globals_dragonsphere.cpp')
-rw-r--r--engines/mads/dragonsphere/globals_dragonsphere.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/engines/mads/dragonsphere/globals_dragonsphere.cpp b/engines/mads/dragonsphere/globals_dragonsphere.cpp
new file mode 100644
index 0000000000..fa05ed97c2
--- /dev/null
+++ b/engines/mads/dragonsphere/globals_dragonsphere.cpp
@@ -0,0 +1,51 @@
+/* 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 "common/scummsys.h"
+#include "common/config-manager.h"
+#include "mads/dragonsphere/globals_dragonsphere.h"
+
+namespace MADS {
+
+namespace Dragonsphere {
+
+DragonsphereGlobals::DragonsphereGlobals()
+ : Globals() {
+ // Initialize lists
+ resize(140);
+ _spriteIndexes.resize(30);
+ _sequenceIndexes.resize(30);
+ _animationIndexes.resize(30);
+}
+
+void DragonsphereGlobals::synchronize(Common::Serializer &s) {
+ Globals::synchronize(s);
+
+ _spriteIndexes.synchronize(s);
+ _sequenceIndexes.synchronize(s);
+ _animationIndexes.synchronize(s);
+}
+
+
+} // End of namespace Dragonsphere
+
+} // End of namespace MADS