NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_a_remo_door.hpp
1#pragma once
2#include <game/bases/d_actor_state.hpp>
4#include <game/bases/d_heap_allocator.hpp>
5#include <game/mLib/m_3d.hpp>
6#include <nw4r/g3d.h>
7
8/// @brief A door that can be opened by tilting the Wii Remote.
9/// @details The door is otherwise non-functional and is always drawn over the player.
10/// @paramtable
11/// @statetable
12/// @ingroup bases
13/// @unused
15public:
16 daRemoDoor_c() : mRes(nullptr) {} ///< @copydoc dActorState_c::dActorState_c
17 ~daRemoDoor_c() {} ///< @copydoc dActorState_c::~dActorState_c
18
19 virtual int create();
20 virtual int execute();
21 virtual int draw();
22
23 void init(); ///< Initializes the resources for the actor.
24
25 STATE_FUNC_DECLARE(daRemoDoor_c, OpenReady); ///< The door is ready to be opened.
26 STATE_FUNC_DECLARE(daRemoDoor_c, Open); ///< The door is opening or has been opened.
27 STATE_FUNC_DECLARE(daRemoDoor_c, Close); ///< The door is closing.
28
29 dHeapAllocator_c mAllocator; ///< The allocator.
30 nw4r::g3d::ResFile mRes; ///< The resource file.
31 m3d::mdl_c mDoorModel; ///< The door model.
32
33 static const int SOUND_CLOSE; ///< The sound effect played when the door is closed.
34 static const int SOUND_OPEN; ///< The sound effect played when the door is opened.
35};
dActorState_c()
Constructs a new actor.
static const int SOUND_OPEN
The sound effect played when the door is opened.
nw4r::g3d::ResFile mRes
The resource file.
virtual int create()
do method for the create operation.
~daRemoDoor_c()
Destroys the actor.
virtual int draw()
do method for the draw operation.
virtual int execute()
do method for the execute operation.
dHeapAllocator_c mAllocator
The allocator.
daRemoDoor_c()
Constructs a new actor.
static const int SOUND_CLOSE
The sound effect played when the door is closed.
m3d::mdl_c mDoorModel
The door model.
void init()
Initializes the resources for the actor.
#define STATE_FUNC_DECLARE(class, name)
Declares a state.
Definition s_State.hpp:12