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

sev- sev at scummvm.org
Fri Dec 20 22:48:05 CET 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:
d20bf74f0a FULLPIPE: Implement sceneHandler10()


Commit: d20bf74f0a094d829b2b23ec74e56819508acbd2
    https://github.com/scummvm/scummvm/commit/d20bf74f0a094d829b2b23ec74e56819508acbd2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-12-20T13:47:25-08:00

Commit Message:
FULLPIPE: Implement sceneHandler10()

Changed paths:
    engines/fullpipe/scenes/scene10.cpp



diff --git a/engines/fullpipe/scenes/scene10.cpp b/engines/fullpipe/scenes/scene10.cpp
index 7080952..ffa127c 100644
--- a/engines/fullpipe/scenes/scene10.cpp
+++ b/engines/fullpipe/scenes/scene10.cpp
@@ -51,4 +51,97 @@ void scene10_initScene(Scene *sc) {
 	}
 }
 
+int sceneHandler10(ExCommand *ex) {
+	if (ex->msg._messageKind != 17)
+		return 0;
+
+	switch(ex->_messageNum) {
+	case MSG_LIFT_CLOSEDOOR:
+		lift_closedoorSeq();
+        break;
+
+	case MSG_LIFT_EXITLIFT:
+		lift_exitSeq(ex);
+		break;
+
+	case MSG_LIFT_STARTEXITQUEUE:
+		lift_startExitQueue();
+		break;
+
+	case MSG_LIFT_CLICKBUTTON:
+		lift_animation3();
+		break;
+
+	case MSG_SC10_LADDERTOBACK:
+        g_vars->scene10_ladder->_priority = 49;
+		break;
+
+	case MSG_SC10_LADDERTOFORE:
+		g_vars->scene10_ladder->_priority = 0;
+		break;
+
+	case MSG_LIFT_GO:
+		lift_goAnimation();
+		break;
+
+	case MSG_SC10_CLICKGUM:
+		sceneHandler10_clickGum();
+
+		ex->_messageKind = 0;
+		break;
+
+	case MSG_SC10_HIDEGUM:
+		sceneHandler10_hideGum();
+		break;
+
+	case MSG_SC10_SHOWGUM:
+		sceneHandler10_showGum();
+		break;
+
+	case 64:
+		lift_sub05(ex);
+		break;
+
+	case 29:
+		if (g_fullpipe->_currentScene->getPictureObjectIdAtPos(ex->_sceneClickX, ex->_sceneClickY) == PIC_SC10_LADDER) {
+			handleObjectInteraction(g_aniMan, g_fullpipe->_currentScene->getPictureObjectById(PIC_SC10_DTRUBA, 0), ex->_keyCode);
+			ex->_messageKind = 0;
+
+			return 0;
+		}
+
+		StaticANIObject *ani = g_fullpipe->_currentScene->getStaticANIObjectAtPos(ex->_sceneClickX, ex->_sceneClickY);
+
+		if (ani && ani->_id == ANI_LIFTBUTTON) {
+			lift_sub1(ani);
+			ex->_messageKind = 0;
+
+			return 0;
+		}
+		break;
+
+	case 33:
+		{
+			int res = 0;
+
+			if (g_fullpipe->_aniMan2) {
+				if (g_fullpipe->_aniMan2->_ox < g_fullpipe->_sceneRect.left + 200)
+					g_fullpipe->_currentScene->_x = g_fullpipe->_aniMan2->_ox - g_fullpipe->_sceneRect.left - 300;
+
+				if (g_fullpipe->_aniMan2->_ox > g_fullpipe->_sceneRect.right - 200)
+					g_fullpipe->_currentScene->_x = g_fullpipe->_aniMan2->_ox - g_fullpipe->_sceneRect.right + 300;
+
+				res = 1;
+			}
+
+			g_fullpipe->_behaviorManager->updateBehaviors();
+			g_fullpipe->startSceneTrack();
+
+			return res;
+		}
+	}
+
+	return 0;
+}
+
 } // End of namespace Fullpipe






More information about the Scummvm-git-logs mailing list