Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandlerFinal_startFinal()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 23, 2014
1 parent e9ced07 commit 19bf8cf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1359,6 +1359,7 @@ namespace Fullpipe {
#define MSG_FIN_STARTFINAL 5025
#define MSG_FN4_STARTMUSIC 5356
#define QU_FIN1_FALLCOIN 5018
#define QU_FIN1_TAKECOIN 5023
#define QU_FN2_DOFINAL 5066
#define QU_FN3_DOFINAL 5072
#define QU_FN4_DOFINAL 5108
Expand Down
12 changes: 12 additions & 0 deletions engines/fullpipe/modal.h
Expand Up @@ -106,6 +106,18 @@ class ModalMap : public BaseModalObject {
PictureObject *getScenePicture();
};

class ModalFinal : public BaseModalObject {
public:
ModalFinal() {}
virtual ~ModalFinal() {}

virtual bool pollEvent() { return true; }
virtual bool handleMessage(ExCommand *message) { return false; }
virtual bool init(int counterdiff) { return true; }
virtual void update() {}
virtual void saveload() {}
};

} // End of namespace Fullpipe

#endif /* FULLPIPE_MODAL_H */
17 changes: 16 additions & 1 deletion engines/fullpipe/scenes/sceneFinal.cpp
Expand Up @@ -33,6 +33,8 @@
#include "fullpipe/interaction.h"
#include "fullpipe/behavior.h"

#include "fullpipe/modal.h"


namespace Fullpipe {

Expand Down Expand Up @@ -93,7 +95,20 @@ void sceneHandlerFinal_goto2() {
}

void sceneHandlerFinal_startFinal() {
warning("STUB: sceneHandlerFinal_startFinal()");
g_vars->sceneFinal_var01 = 1;

getCurrSceneSc2MotionController()->clearEnabled();
getGameLoaderInteractionController()->disableFlag24();

g_fp->_aniMan2 = 0;

g_fp->_aniMan->_flags &= 0xFFFB;

chainQueue(QU_FIN1_TAKECOIN, 1);

g_fp->playTrack(g_fp->getGameLoaderGameVar()->getSubVarByName("SC_FINAL1"), "MUSIC2", 1);

g_fp->_modalObject = new ModalFinal;
}

void sceneHandlerFinal_fallCoin() {
Expand Down

0 comments on commit 19bf8cf

Please sign in to comment.