2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 13:11:21 +00:00
metaforce/Runtime/MP1/CPlayMovie.hpp
Lioncash 67f6666ea1 Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable.

This targets the regular RuntimeCommon target this time around.
2020-03-31 03:53:49 -04:00

39 lines
651 B
C++

#pragma once
#include "Runtime/CPlayMovieBase.hpp"
#include "Runtime/RetroTypes.hpp"
namespace urde::MP1 {
class CPlayMovie : public CPlayMovieBase {
public:
enum class EWhichMovie {
WinGameBad,
WinGameGood,
WinGameBest,
LoseGame,
TalonTest,
AfterCredits,
SpecialEnding,
CreditBG
};
private:
EWhichMovie x18_which;
union {
struct {
bool x78_24_ : 1;
bool x78_25_ : 1;
bool x78_26_resultsScreen : 1;
bool x78_27_ : 1;
};
u16 _dummy = 0;
};
static bool IsResultsScreen(EWhichMovie which);
public:
explicit CPlayMovie(EWhichMovie which);
};
} // namespace urde::MP1