Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler07_openLuke()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 19, 2013
1 parent 97cd39b commit 8862be2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -403,6 +403,7 @@ namespace Fullpipe {
#define ST_LBN_9N 2777
#define ST_LBN_9P 2778
#define ST_LUK_CLOSED 805
#define ST_LUK_OPEN 806
#define ST_MAN_GOLADDER 450
#define ST_MAN_GOLADDER2 2843
#define ST_MAN_EMPTY 476
Expand Down
15 changes: 14 additions & 1 deletion engines/fullpipe/scenes/scene07.cpp
Expand Up @@ -55,7 +55,20 @@ void scene07_initScene(Scene *sc) {
}

void sceneHandler07_openLuke() {
warning("STUB: sceneHandler07_openLuke()");
StaticANIObject *luke = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_LUKE, -1);

luke->changeStatics2(ST_LUK_OPEN);
luke->show1(-1, -1, -1, 0);

if (g_vars->scene07_lukeAnim) {
g_vars->scene07_lukeAnim->_percent = g_vars->scene07_lukePercent;
} else {
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_lukeAnim->_percent = g_vars->scene07_lukePercent;
}
}

void sceneHandler07_closeLuke() {
Expand Down

0 comments on commit 8862be2

Please sign in to comment.