aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/design.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-01-07 23:52:31 +0200
committerEugene Sandulenko2015-12-27 15:39:52 +0100
commitce6aa4dd28c2c8054e6c6287c11c717376771d90 (patch)
treedb09e6a28c583c4af5998c95d4d30ebb78d2ea2a /engines/wage/design.cpp
parentae1f601855dfef89f01100ea4947639f66d032d0 (diff)
downloadscummvm-rg350-ce6aa4dd28c2c8054e6c6287c11c717376771d90.tar.gz
scummvm-rg350-ce6aa4dd28c2c8054e6c6287c11c717376771d90.tar.bz2
scummvm-rg350-ce6aa4dd28c2c8054e6c6287c11c717376771d90.zip
WAGE: Added stubs for most classes. Implemented Obj and Scene classes.
Signed-off-by: Eugene Sandulenko <sev@scummvm.org>
Diffstat (limited to 'engines/wage/design.cpp')
-rw-r--r--engines/wage/design.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
new file mode 100644
index 0000000000..ce9063c2de
--- /dev/null
+++ b/engines/wage/design.cpp
@@ -0,0 +1,42 @@
+/* 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.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "wage/wage.h"
+#include "wage/design.h"
+
+namespace Wage {
+
+Design::Design(byte *data) {
+ int len = READ_UINT16(data);
+
+ _data = (byte *)malloc(len);
+ memcpy(_data, data, len);
+}
+
+Design::~Design() {
+ free(_data);
+}
+
+} // End of namespace Wage