NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_fader.hpp
1#pragma once
2#include <game/mLib/m_fader_base.hpp>
3
4/// @brief Fader management class.
5/// @details This ensures that only one fader is employed at once.
6/// @ingroup mlib
7class mFader_c {
8public:
9 static void draw(); ///< Draws the current fader.
10
11 /// @brief Checks if the current fader's status matches @p status .
12 static bool isStatus(mFaderBase_c::EStatus status) { return mFader->getStatus() == status; }
13
14 /// @brief Sets the fader to be used.
15 /// @return If the operation was successful.
16 static bool setFader(mFaderBase_c *fader);
17
18 static mFaderBase_c *mFader; ///< The fader currently in use.
19};
Base fader implementation.
EStatus
The fader's status.
Fader management class.
Definition m_fader.hpp:7
static mFaderBase_c * mFader
The fader currently in use.
Definition m_fader.hpp:18
static bool setFader(mFaderBase_c *fader)
Sets the fader to be used.
Definition m_fader.cpp:14
static bool isStatus(mFaderBase_c::EStatus status)
Checks if the current fader's status matches status .
Definition m_fader.hpp:12
static void draw()
Draws the current fader.
Definition m_fader.cpp:8