metaforce/Runtime/MP1/CPlayMovie.hpp

45 lines
1021 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-08-27 00:23:46 +00:00
#include "Runtime/CIOWin.hpp"
#include "Runtime/Graphics/CMoviePlayer.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/MP1/CQuitGameScreen.hpp"
2015-08-27 00:23:46 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce::MP1 {
2015-08-27 00:23:46 +00:00
class CPlayMovie : public CIOWin {
2015-08-27 00:23:46 +00:00
public:
2018-12-08 05:30:43 +00:00
enum class EWhichMovie {
WinGameBad,
WinGameGood,
WinGameBest,
LoseGame,
TalonText,
2018-12-08 05:30:43 +00:00
AfterCredits,
SpecialEnding,
CreditBG
};
2015-08-27 00:23:46 +00:00
private:
s32 x14_ = 0;
2018-12-08 05:30:43 +00:00
EWhichMovie x18_which;
std::unique_ptr<CMoviePlayer> x38_moviePlayer;
std::unique_ptr<CQuitGameScreen> x40_quitScreen;
bool x78_24_ : 1 = false;
bool x78_25_ : 1 = false;
bool x78_26_resultsScreen : 1 = false;
bool x78_27_ : 1 = false;
2018-12-08 05:30:43 +00:00
static bool IsResultsScreen(EWhichMovie which);
void DrawVideo();
void DrawText();
2015-08-27 00:23:46 +00:00
public:
explicit CPlayMovie(EWhichMovie which);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
void Draw() override;
bool GetIsContinueDraw() const override { return false; }
2015-08-27 00:23:46 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce::MP1