FULLPIPE: Implement sceneHandlerFinal_startFinal()

This commit is contained in:
Eugene Sandulenko 2014-01-23 11:55:01 -08:00
parent e9ced0784b
commit 19bf8cf4bf
3 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -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 */

View File

@ -33,6 +33,8 @@
#include "fullpipe/interaction.h"
#include "fullpipe/behavior.h"
#include "fullpipe/modal.h"
namespace Fullpipe {
@ -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() {