diff options
author | Eugene Sandulenko | 2014-02-03 22:22:24 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-03 22:22:24 +0200 |
commit | db02b5726299224cf30bb1a87018fd42862514b8 (patch) | |
tree | e3559a6ee41232f7b9656707037498b4089fb03d /engines/fullpipe/scenes/scene27.cpp | |
parent | b2518bdadf6d927faa449135c617e0dd1048721d (diff) | |
download | scummvm-rg350-db02b5726299224cf30bb1a87018fd42862514b8.tar.gz scummvm-rg350-db02b5726299224cf30bb1a87018fd42862514b8.tar.bz2 scummvm-rg350-db02b5726299224cf30bb1a87018fd42862514b8.zip |
FULLPIPE: Implement sceneHandler27_startBat()
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index d143577e32..d648706e56 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -257,8 +257,28 @@ void sceneHandler27_clickBat(ExCommand *cmd) { } } +void sceneHandler27_maidSwab() { + warning("STUB: sceneHandler27_maidSwab()"); +} + void sceneHandler27_startBat(StaticANIObject *bat) { - warning("STUB: sceneHandler27_startBat()"); + Bat *newbat = new Bat; + + newbat->power = g_vars->scene27_launchPhase * 2.5 + 8.0; + newbat->field_10 = 0; + newbat->ani = bat; + newbat->powerCos = newbat->power * cos(0.0); + newbat->powerSin = sin(0.0) * newbat->power; + newbat->currX = newbat->powerCos + (double)g_fp->_aniMan->_ox + 42.0; + newbat->currY = newbat->powerSin + (double)g_fp->_aniMan->_oy + 58.0; + + bat->_statics = (Statics *)bat->_staticsList[0]; + bat->setOXY((int)newbat->currX, (int)newbat->currY); + bat->_flags |= 4; + + g_vars->scene27_bats.push_back(newbat); + + sceneHandler27_maidSwab(); } void sceneHandler27_startAiming() { |