aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-24 18:30:19 +0200
committerEugene Sandulenko2013-12-25 09:13:52 +0200
commit2ad2eb12eea831ef0a781d837b772f8ac196ee76 (patch)
treee3bfebd2ba3dea77090486ee383a97adbcfe3123 /engines
parent40974e4e9aff0acc4a43fbccc6296c6246dd7d79 (diff)
downloadscummvm-rg350-2ad2eb12eea831ef0a781d837b772f8ac196ee76.tar.gz
scummvm-rg350-2ad2eb12eea831ef0a781d837b772f8ac196ee76.tar.bz2
scummvm-rg350-2ad2eb12eea831ef0a781d837b772f8ac196ee76.zip
FULLPIPE: Implement scene12_init()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/module.mk1
-rw-r--r--engines/fullpipe/scenes.cpp3
-rw-r--r--engines/fullpipe/scenes.h3
-rw-r--r--engines/fullpipe/scenes/scene12.cpp47
4 files changed, 54 insertions, 0 deletions
diff --git a/engines/fullpipe/module.mk b/engines/fullpipe/module.mk
index 15bf9c942d..6f8fbe2c71 100644
--- a/engines/fullpipe/module.mk
+++ b/engines/fullpipe/module.mk
@@ -34,6 +34,7 @@ MODULE_OBJS = \
scenes/scene08.o \
scenes/scene10.o \
scenes/scene11.o \
+ scenes/scene12.o \
scenes/scene15.o \
scenes/sceneDbg.o \
scenes/sceneIntro.o
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index fdfee9753f..ebdcf398de 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -186,6 +186,9 @@ Vars::Vars() {
scene11_var19 = 0;
scene11_var20 = 0;
+ scene12_fly = 0;
+ scene12_flyCountdown = 0;
+
scene15_chantingCountdown = 0;
scene15_plusminus = 0;
scene15_ladder = 0;
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index 8c4257f633..53cabed166 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -242,6 +242,9 @@ public:
int scene11_var19;
int scene11_var20;
+ int scene12_fly;
+ int scene12_flyCountdown;
+
int scene15_chantingCountdown;
StaticANIObject *scene15_plusminus;
PictureObject *scene15_ladder;
diff --git a/engines/fullpipe/scenes/scene12.cpp b/engines/fullpipe/scenes/scene12.cpp
new file mode 100644
index 0000000000..60059519e6
--- /dev/null
+++ b/engines/fullpipe/scenes/scene12.cpp
@@ -0,0 +1,47 @@
+/* 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.
+ *
+ */
+
+#include "fullpipe/fullpipe.h"
+
+#include "fullpipe/objects.h"
+#include "fullpipe/objectnames.h"
+#include "fullpipe/constants.h"
+#include "fullpipe/motion.h"
+#include "fullpipe/scenes.h"
+#include "fullpipe/scene.h"
+#include "fullpipe/floaters.h"
+
+namespace Fullpipe {
+
+void scene12_initScene() {
+ GameVar *var = g_fp->getGameLoaderGameVar()->getSubVarByName("SC_12");
+ g_fp->_floaters->init(var);
+
+ g_vars->scene12_fly = g_fp->getObjectState("Муха_12");
+
+ if (g_vars->scene12_fly)
+ g_vars->scene12_flyCountdown = 600 * g_fp->_rnd->getRandomNumber(32767) / 0x7fff + 600;
+
+ g_fp->setObjectState("Муха_12", g_fp->_rnd->getRandomNumber(1));
+}
+
+} // End of namespace Fullpipe