From db02b5726299224cf30bb1a87018fd42862514b8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 3 Feb 2014 22:22:24 +0200 Subject: FULLPIPE: Implement sceneHandler27_startBat() --- engines/fullpipe/scenes/scene27.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/scenes') 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() { -- cgit v1.2.3