[Scummvm-cvs-logs] scummvm master -> e04744fc266ab7d59bf864f11903616c89f65792

sev- sev at scummvm.org
Fri Oct 4 00:26:09 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e04744fc26 FULLPIPE: Started implementation MctlCompound::method4C()


Commit: e04744fc266ab7d59bf864f11903616c89f65792
    https://github.com/scummvm/scummvm/commit/e04744fc266ab7d59bf864f11903616c89f65792
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-10-03T15:25:44-07:00

Commit Message:
FULLPIPE: Started implementation MctlCompound::method4C()

Changed paths:
    engines/fullpipe/motion.cpp



diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index f06125e..6908344 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -126,6 +126,68 @@ MessageQueue *MctlCompound::method4C(StaticANIObject *subj, int xpos, int ypos,
 	warning("STUB: MctlCompound::method4C()");
 
 	return 0;
+
+#if 0
+	int match1 = -1;
+	int match2 = -1;
+
+	if (!subj)
+		return 0;
+
+	for (uint i = 0; i < _motionControllers.size(); i++) {
+		if (_motionControllers[i]->_movGraphReactObj) {
+			if (_motionControllers[i]->_movGraphReactObj->pointInRegion(subj->_ox, subj->_oy)) {
+				match1 = i;
+				break;
+			}
+		}
+	}
+
+	if (match1 == -1)
+		return 0;
+
+	for (uint i = 0; i < _motionControllers.size(); i++) {
+		if (_motionControllers[i]->_movGraphReactObj) {
+			if (_motionControllers[i]->_movGraphReactObj->pointInRegion(xpos, ypos)) {
+				match2 = i;
+				break;
+			}
+		}
+	}
+
+	if (match2 == -1)
+		return 0;
+
+	if (match1 == match2)
+		return _motionControllers[match1]->_motionControllerObj->method4C(subj, xpos, ypos, flag, staticsId);
+
+	MctlConnectionPoint *closestP = findClosestConnectionPoint(subj->_ox, subj->_oy, match1, xpos, ypos, match2, &match2);
+
+	if (!closestP)
+		return 0;
+
+	MctlConnectionPoint *nextP = _motionControllers[match1]->_motionControllerObj->method4C(subj, closestP->connectionX, closestP->connectionY, 1, closestP->field_14);
+
+	ExCommand *ex;
+
+	if (nextP) {
+		for (uint i = 0; i < closestP->_messageQueueObj->getCount(); i++) {
+			ex = new ExCommand(closestP->_messageQueueObj->getExCommandByIndex(i));
+			ex->excFlags |= 2;
+			nextP->messageQueueObj->CPtrList::AddTail(ex);
+		}
+
+		ex = new ExCommand(subj->_id, 51, 0, xpos, ypos, 0, 1, 0, 0, 0);
+
+		ex->_field_20 = flag;
+		ex->_keyCode = subj->_okeyCode;
+		ex->_excFlags |= 2;
+
+		nextP->messageQueueObj->CPtrList::AddTail(ex);
+	}
+
+	return nextP;
+#endif
 }
 
 bool MctlCompoundArray::load(MfcArchive &file) {






More information about the Scummvm-git-logs mailing list