2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2021-06-04 06:08:05 +00:00
|
|
|
#include "Runtime/CIOWin.hpp"
|
|
|
|
#include "Runtime/Graphics/CMoviePlayer.hpp"
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2021-06-04 06:08:05 +00:00
|
|
|
#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
|
|
|
|
2021-06-04 06:08:05 +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,
|
2021-06-04 06:08:05 +00:00
|
|
|
TalonText,
|
2018-12-08 05:30:43 +00:00
|
|
|
AfterCredits,
|
|
|
|
SpecialEnding,
|
|
|
|
CreditBG
|
|
|
|
};
|
|
|
|
|
2015-08-27 00:23:46 +00:00
|
|
|
private:
|
2021-06-04 06:08:05 +00:00
|
|
|
s32 x14_ = 0;
|
2018-12-08 05:30:43 +00:00
|
|
|
EWhichMovie x18_which;
|
2021-06-04 06:08:05 +00:00
|
|
|
std::unique_ptr<CMoviePlayer> x38_moviePlayer;
|
|
|
|
std::unique_ptr<CQuitGameScreen> x40_quitScreen;
|
2020-04-21 07:22:41 +00:00
|
|
|
bool x78_24_ : 1 = false;
|
|
|
|
bool x78_25_ : 1 = false;
|
|
|
|
bool x78_26_resultsScreen : 1 = false;
|
|
|
|
bool x78_27_ : 1 = false;
|
2020-04-10 19:25:40 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
static bool IsResultsScreen(EWhichMovie which);
|
|
|
|
|
2021-06-04 06:08:05 +00:00
|
|
|
void DrawVideo();
|
|
|
|
void DrawText();
|
2021-06-07 19:29:18 +00:00
|
|
|
|
2015-08-27 00:23:46 +00:00
|
|
|
public:
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CPlayMovie(EWhichMovie which);
|
2021-06-04 06:08:05 +00:00
|
|
|
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
|