diff options
author | Eugene Sandulenko | 2013-12-19 18:18:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-19 18:18:05 +0200 |
commit | 5884090696441001eb3acca5e0ddeff39e410026 (patch) | |
tree | 59189e21887f6596d16c665828f104258225b98d /engines | |
parent | db5156793e7f66dada1e244ff9cf87144a054071 (diff) | |
download | scummvm-rg350-5884090696441001eb3acca5e0ddeff39e410026.tar.gz scummvm-rg350-5884090696441001eb3acca5e0ddeff39e410026.tar.bz2 scummvm-rg350-5884090696441001eb3acca5e0ddeff39e410026.zip |
FULLPIPE: Implement sceneHandler07_closeLuke()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 5 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene07.cpp | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index f7e6f84805..bf843efc03 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -39,6 +39,7 @@ namespace Fullpipe { #define ANI_EGGIE 4929 #define ANI_HAND 601 #define ANI_HANDLE 622 +#define ANI_HOOLIGAN 808 #define ANI_IN1MAN 5110 #define ANI_INV_COIN 875 #define ANI_INV_EGGAPL 1564 @@ -50,6 +51,7 @@ namespace Fullpipe { #define ANI_INV_MAP 5321 #define ANI_KOZAWKA 495 #define ANI_LIFTBUTTON 2751 +#define ANI_LUKE 803 #define ANI_MAMASHA 656 #define ANI_MAMASHA_4 660 #define ANI_MAN 322 @@ -261,6 +263,7 @@ namespace Fullpipe { #define PIC_SCD_SEL 734 #define QU_BALL_WALKL 4920 #define QU_BALL_WALKR 4919 +#define QU_CST_CLOSELUKE 820 #define QU_EGG6_GOL 4936 #define QU_EGG6_GOR 4935 #define QU_EGTR_MD2_SHOW 4698 @@ -364,6 +367,7 @@ namespace Fullpipe { #define ST_EGTR_MID1 2863 #define ST_EGTR_MID2 2869 #define ST_EGTR_SLIM 336 +#define ST_HGN_LUKE 810 #define ST_HDL_BROKEN 3342 #define ST_HDL_DOWN 625 #define ST_HDL_PLUGGED 2397 @@ -394,6 +398,7 @@ namespace Fullpipe { #define ST_LBN_8P 2775 #define ST_LBN_9N 2777 #define ST_LBN_9P 2778 +#define ST_LUK_CLOSED 805 #define ST_MAN_GOLADDER 450 #define ST_MAN_GOLADDER2 2843 #define ST_MAN_EMPTY 476 diff --git a/engines/fullpipe/scenes/scene07.cpp b/engines/fullpipe/scenes/scene07.cpp index a5c83d1c67..f324ff1cff 100644 --- a/engines/fullpipe/scenes/scene07.cpp +++ b/engines/fullpipe/scenes/scene07.cpp @@ -59,7 +59,21 @@ void sceneHandler07_openLuke() { } void sceneHandler07_closeLuke() { - warning("STUB: sceneHandler07_closeLuke()"); + g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_LUKE, -1)->changeStatics2(ST_LUK_CLOSED); + + if (!g_vars->scene07_lukeAnim) { + StaticANIObject *ani = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_CORNERSITTER, -1); + + g_vars->scene07_lukeAnim = g_fullpipe->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(ani, ST_CST_HANDLELESS, QU_CST_CLOSELUKE); + } + + g_vars->scene07_lukePercent = g_vars->scene07_lukeAnim->_percent; + g_vars->scene07_lukeAnim->_percent = 0; + + StaticANIObject *ani = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_HOOLIGAN, -1); + + ani->changeStatics2(ST_HGN_LUKE); + ani->show1(-1, -1, -1, 0); } void sceneHandler07_hideLuke() { |