aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/motion.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-18 17:07:28 -0400
committerEugene Sandulenko2013-09-06 14:48:13 +0300
commitfcf0d240d0266fa89073e12d2a15a045b6bdfe65 (patch)
treec294b77048f70316a74b4089b6276303e56064d4 /engines/fullpipe/motion.cpp
parent195d52e625b1d24ea0cbda3bb8d65043d1b5eea5 (diff)
downloadscummvm-rg350-fcf0d240d0266fa89073e12d2a15a045b6bdfe65.tar.gz
scummvm-rg350-fcf0d240d0266fa89073e12d2a15a045b6bdfe65.tar.bz2
scummvm-rg350-fcf0d240d0266fa89073e12d2a15a045b6bdfe65.zip
FULLPIPE: Finish reading CMctlCompund
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r--engines/fullpipe/motion.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 64fbd083de..f10388a98e 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -42,11 +42,26 @@ bool CMotionController::load(MfcArchive &file) {
bool CMctlCompound::load(MfcArchive &file) {
int count = file.readUint32LE();
- debug(0, "CMctlCompund::count = %d", count);
+ debug(0, "CMctlCompound::count = %d", count);
for (int i = 0; i < count; i++) {
+ debug(0, "CompoundArray[%d]", i);
CMctlCompoundArrayItem *obj = (CMctlCompoundArrayItem *)file.readClass();
+ int count1 = file.readUint32LE();
+
+ for (int j = 0; j < count1; j++) {
+ debug(0, "ConnectionPoint[%d]", j);
+ CMctlConnectionPoint *obj1 = (CMctlConnectionPoint *)file.readClass();
+
+ obj->_connectionPoints.push_back(*obj1);
+ }
+
+ obj->_field_20 = file.readUint32LE();
+ obj->_field_24 = file.readUint32LE();
+
+ obj->_movGraphReactObj = (CMovGraphReact *)file.readClass();
+
_motionControllers.push_back(*obj);
}
@@ -56,7 +71,7 @@ bool CMctlCompound::load(MfcArchive &file) {
bool CMctlCompoundArray::load(MfcArchive &file) {
int count = file.readUint32LE();
- debug(0, "CMctlCompundArray::count = %d", count);
+ debug(0, "CMctlCompoundArray::count = %d", count);
return true;
}
@@ -93,7 +108,9 @@ bool CMovGraphLink::load(MfcArchive &file) {
_flags = file.readUint32LE();
+ debug(0, "GraphNode1");
_movGraphNode1 = (CMovGraphNode *)file.readClass();
+ debug(0, "GraphNode2");
_movGraphNode2 = (CMovGraphNode *)file.readClass();
_distance = file.readDouble();