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 <lib/nw4r/g3d/res_file.hpp>
7
8/// @brief A door that can be opened by tilting the Wii Remote.
9/// @ingroup bases
10/// @unused
12public:
13 daRemoDoor_c() : mRes(nullptr) {} ///< @copydoc dActorState_c::dActorState_c
14 ~daRemoDoor_c() {} ///< @copydoc dActorState_c::~dActorState_c
15
16 virtual int create();
17 virtual int execute();
18 virtual int draw();
19
20 void init(); ///< Initializes the resources for the actor.
21
25
26 dHeapAllocator_c mAllocator; ///< The allocator.
27 nw4r::g3d::ResFile mRes; ///< The resource file.
28 m3d::mdl_c mDoorModel; ///< The door model.
29
30 static const int SOUND_CLOSE; ///< The sound effect played when the door is closed.
31 static const int SOUND_OPEN; ///< The sound effect played when the door is opened.
32};
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