NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
eggFader.hpp
1#pragma once
2
3namespace EGG {
4
8 class Fader {
9 public:
10
12 enum EStatus {
13 OPAQUE,
14 HIDDEN,
15 FADE_IN,
16 FADE_OUT
17 };
18
19
20 virtual void setStatus(EStatus status) = 0;
21 virtual EStatus getStatus() const = 0;
22 virtual bool fadeIn() = 0;
23 virtual bool fadeOut() = 0;
24 virtual int calc() = 0;
25 virtual void draw() = 0;
26 };
27}
Interface for a fader.
Definition eggFader.hpp:8
virtual void draw()=0
Calculates the fader at the current frame.
virtual bool fadeOut()=0
Initiates a fade in from pure blacked-out.
EStatus
The fader's status.
Definition eggFader.hpp:12
virtual EStatus getStatus() const =0
Sets the fader's status.
virtual bool fadeIn()=0
Gets the fader's status.
virtual int calc()=0
Initiates a fade out from no-obstruction.