diff options
author | Eugene Sandulenko | 2014-01-12 12:07:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-12 12:07:34 +0200 |
commit | 19c8acb992a176d1b32937f7bb786a89cc828060 (patch) | |
tree | e7b1955b993ca38c6aa61fd26a38a1a68d65ceb5 /engines/fullpipe | |
parent | fc69e5a71a01626a7a6c4afa75adaacfb8bef2db (diff) | |
download | scummvm-rg350-19c8acb992a176d1b32937f7bb786a89cc828060.tar.gz scummvm-rg350-19c8acb992a176d1b32937f7bb786a89cc828060.tar.bz2 scummvm-rg350-19c8acb992a176d1b32937f7bb786a89cc828060.zip |
FULLPIPE: Initial code for scene34
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes/scene34.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene34.cpp b/engines/fullpipe/scenes/scene34.cpp new file mode 100644 index 0000000000..e2e2408f15 --- /dev/null +++ b/engines/fullpipe/scenes/scene34.cpp @@ -0,0 +1,82 @@ +/* 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/objectnames.h" +#include "fullpipe/constants.h" + +#include "fullpipe/gameloader.h" +#include "fullpipe/motion.h" +#include "fullpipe/scenes.h" +#include "fullpipe/statics.h" + +#include "fullpipe/interaction.h" +#include "fullpipe/behavior.h" + + +namespace Fullpipe { + +void scene34_initScene(Scene *sc) { + g_vars->scene34_var01 = 200; + g_vars->scene34_var02 = 200; + g_vars->scene34_var03 = 300; + g_vars->scene34_var04 = 300; + g_vars->scene34_cactus = sc->getStaticANIObject1ById(ANI_CACTUS_34, -1); + g_vars->scene34_vent = sc->getStaticANIObject1ById(ANI_VENT_34, -1); + g_vars->scene34_hatch = sc->getStaticANIObject1ById(ANI_LUK_34, -1); + g_vars->scene34_boot = sc->getStaticANIObject1ById(ANI_BOOT_34, -1); + + if (getObjectState(sO_Cactus) == getObjectEnumState(sO_Cactus, sO_HasGrown)) { + Scene *oldsc = g_fp->_currentScene; + + g_fp->_currentScene = sc; + + g_vars->scene34_cactus->changeStatics2(ST_CTS34_EMPTY); + g_vars->scene34_cactus->setOXY(506, 674); + g_vars->scene34_cactus->_priority = 30; + + g_vars->scene34_cactus->changeStatics2(ST_CTS34_GROWNEMPTY2); + g_vars->scene34_cactus->_flags |= 4; + + g_fp->_currentScene = oldsc; + } + + if (g_fp->getObjectState(sO_Grandma) == g_fp->getObjectEnumState(sO_Grandma, sO_Strolling)) + g_fp->setObjectState(sO_Grandma, g_fp->getObjectEnumState(sO_Grandma, sO_OnStool)); + + sceneHandler34_setExits(); + + g_vars->scene34_var05 = 0; + g_vars->scene34_var06 = 0; + g_vars->scene34_var07 = 0; + g_vars->scene34_var08 = g_fp->_rnd->getRandomNumber(500) + 500; + + g_fp->_floaters->init(g_fp->getGameLoaderGameVar()->getSubVarByName("SC_34")); + + g_fp->lift_setButton("Этаж 7", ST_LBN_7N); + g_fp->lift_sub5(sc, QU_SC34_ENTERLIFT, QU_SC34_EXITLIFT); + + initArcadeKeys("SC_34"); +} + +} // End of namespace Fullpipe |