metaforce/Runtime/MP1/CPlayMovie.hpp

46 lines
1022 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2015-08-26 17:23:46 -07:00
#include "Runtime/CIOWin.hpp"
#include "Runtime/Graphics/CMoviePlayer.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/MP1/CQuitGameScreen.hpp"
2015-08-26 17:23:46 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce::MP1 {
2015-08-26 17:23:46 -07:00
class CPlayMovie : public CIOWin {
2015-08-26 17:23:46 -07:00
public:
2018-12-07 21:30:43 -08:00
enum class EWhichMovie {
WinGameBad,
WinGameGood,
WinGameBest,
LoseGame,
TalonText,
2018-12-07 21:30:43 -08:00
AfterCredits,
SpecialEnding,
CreditBG
};
2015-08-26 17:23:46 -07:00
private:
s32 x14_ = 0;
2018-12-07 21:30:43 -08: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-07 21:30:43 -08:00
static bool IsResultsScreen(EWhichMovie which);
void DrawVideo();
void DrawText();
2021-06-07 12:29:18 -07:00
2015-08-26 17:23:46 -07:00
public:
explicit CPlayMovie(EWhichMovie which);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
void Draw() override;
bool GetIsContinueDraw() const override { return false; }
2015-08-26 17:23:46 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce::MP1