2#include <game/mLib/m_color.hpp>
21 FADE_IN_COMPLETE = BIT_FLAG(0),
22 FADE_OUT_COMPLETE = BIT_FLAG(1)
Base fader implementation.
virtual ~mFaderBase_c()
Destroys the fader.
virtual void draw()=0
Draws the fader.
u16 mCurrFrame
The fader's current frame.
EStatus mStatus
The fader's status.
virtual EStatus getStatus() const
Gets the fader's status.
virtual void setStatus(EStatus status)=0
Sets the fader's status.
u8 mFlag
The fader's flags.
virtual bool fadeIn()
Initiates a fade in from pure blacked-out.
FLAG_e
Some flags related to the fader.
void setFrame(u16 duration)
Sets the duration of the fade. Duration must not be zero.
u16 mFrameCount
The fader's duration.
mColor mFaderColor
The fader's color.
mFaderBase_c(const mColor &color, EStatus status)
Constructs a new fader.
EStatus
The fader's status.
@ FADE_IN
Transition from OPAQUE to HIDDEN.
@ FADE_OUT
Transition from HIDDEN to OPAQUE.
@ HIDDEN
The screen is completely unblocked.
@ OPAQUE
The screen is completely blacked out.
virtual int calc()
Calculates the fader at the current frame.
virtual bool fadeOut()
Initiates a fade out from no-obstruction.
void setColor(const mColor &color)
Sets the fader's color. Alpha is not modified.