aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/globals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/globals.cpp')
-rw-r--r--engines/m4/globals.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/engines/m4/globals.cpp b/engines/m4/globals.cpp
index 3db9934cec..8787f89d04 100644
--- a/engines/m4/globals.cpp
+++ b/engines/m4/globals.cpp
@@ -18,9 +18,6 @@
* 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 "common/textconsole.h"
@@ -526,19 +523,23 @@ void MadsObject::load(Common::SeekableReadStream *stream) {
stream->read(obj, 0x30);
// Extract object data fields
- descId = READ_LE_UINT16(&obj[0]);
- roomNumber = READ_LE_UINT16(&obj[2]);
- article = (MADSArticles)obj[4];
- vocabCount = obj[5] & 0x7f;
+ _descId = READ_LE_UINT16(&obj[0]);
+ _roomNumber = READ_LE_UINT16(&obj[2]);
+ _article = (MADSArticles)obj[4];
+ _vocabCount = obj[5] & 0x7f;
// Phantom / Dragon
- if (vocabCount > 3)
- warning("MadsObject::load(), vocab cound > 3 (it's %d)", vocabCount);
+ if (_vocabCount > 3)
+ warning("MadsObject::load(), vocab cound > 3 (it's %d)", _vocabCount);
- for (int i = 0; i < vocabCount; ++i) {
- vocabList[i].flags1 = obj[6 + i * 4];
- vocabList[i].flags2 = obj[7 + i * 4];
- vocabList[i].vocabId = READ_LE_UINT16(&obj[8 + i * 4]);
+ for (int i = 0; i < _vocabCount; ++i) {
+ _vocabList[i].flags1 = obj[6 + i * 4];
+ _vocabList[i].flags2 = obj[7 + i * 4];
+ _vocabList[i].vocabId = READ_LE_UINT16(&obj[8 + i * 4]);
}
}
+void MadsObject::setRoom(int roomNumber) {
+
+}
+
} // End of namespace M4