NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_controller_information.hpp
1
#pragma once
2
#include <
dol/bases/d_base.hpp
>
3
#include <dol/bases/d_lytbase.hpp>
4
8
class
dControllerInformation_c
:
public
dBase_c
{
9
public
:
10
12
enum
ANIM_e
{
13
IN2BTN
,
14
LOOP2BTN
,
15
HIT2BTN
16
};
17
19
enum
STATE_e
{
20
IDLE
,
21
SHOW_IN
,
22
SHOW_LOOP
,
23
WAITING_FOR_END
,
24
END
25
};
26
27
dControllerInformation_c
();
28
virtual
~dControllerInformation_c
();
29
virtual
int
create
();
30
virtual
int
doDelete
();
31
virtual
int
execute
();
32
virtual
int
draw
();
33
36
bool
createLayout
();
37
38
void
setVisible(
bool
visible) {
mVisible
= visible; }
39
void
setState(
STATE_e
state) {
mState
= state; }
40
41
private
:
42
LytBase_c
mLayout
;
43
bool
mIsCreated
;
44
bool
mVisible
;
45
STATE_e
mState
;
46
};
LytBase_c
Definition
d_lytbase.hpp:9
dBase_c
An extension of fBase_c with base kind and name strings.
Definition
d_base.hpp:9
dControllerInformation_c
Displays the controller information screen.
Definition
d_controller_information.hpp:8
dControllerInformation_c::mIsCreated
bool mIsCreated
If the layout has been successfully created.
Definition
d_controller_information.hpp:43
dControllerInformation_c::mState
STATE_e mState
Which state the base is currently in.
Definition
d_controller_information.hpp:45
dControllerInformation_c::STATE_e
STATE_e
The state that controls what the layout should be doing.
Definition
d_controller_information.hpp:19
dControllerInformation_c::WAITING_FOR_END
@ WAITING_FOR_END
Play the button animation while waiting for user input.
Definition
d_controller_information.hpp:23
dControllerInformation_c::SHOW_IN
@ SHOW_IN
Play the button pop-out animation.
Definition
d_controller_information.hpp:21
dControllerInformation_c::END
@ END
The button has been pressed, play the sound effect and the shrinking button animation.
Definition
d_controller_information.hpp:24
dControllerInformation_c::SHOW_LOOP
@ SHOW_LOOP
Wait for the pop-out to finish.
Definition
d_controller_information.hpp:22
dControllerInformation_c::IDLE
@ IDLE
Initial state; waiting for layout creation.
Definition
d_controller_information.hpp:20
dControllerInformation_c::execute
virtual int execute()
do method for the execute operation.
Definition
d_controller_information.cpp:72
dControllerInformation_c::doDelete
virtual int doDelete()
do method for the delete operation.
Definition
d_controller_information.cpp:108
dControllerInformation_c::draw
virtual int draw()
do method for the draw operation.
Definition
d_controller_information.cpp:101
dControllerInformation_c::create
virtual int create()
do method for the create operation.
Definition
d_controller_information.cpp:15
dControllerInformation_c::mVisible
bool mVisible
If the layout should be rendered.
Definition
d_controller_information.hpp:44
dControllerInformation_c::createLayout
bool createLayout()
Loads the resources and creates the layout for the base.
Definition
d_controller_information.cpp:34
dControllerInformation_c::mLayout
LytBase_c mLayout
The layout of the base.
Definition
d_controller_information.hpp:42
dControllerInformation_c::ANIM_e
ANIM_e
The identifier for each animation.
Definition
d_controller_information.hpp:12
dControllerInformation_c::LOOP2BTN
@ LOOP2BTN
The button's blinking loop animation.
Definition
d_controller_information.hpp:14
dControllerInformation_c::HIT2BTN
@ HIT2BTN
The button's hit animation.
Definition
d_controller_information.hpp:15
dControllerInformation_c::IN2BTN
@ IN2BTN
The button's pop-out animation.
Definition
d_controller_information.hpp:13
d_base.hpp
include
d_profileNP
bases
d_controller_information.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.9.7