NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_a_wm_cannon.hpp
1#pragma once
2#include <game/bases/d_heap_allocator.hpp>
3#include <game/mLib/m_3d/smdl.hpp>
4#include <game/bases/d_wm_obj_actor.hpp>
5
6/// @brief The actor for the Warp Cannons found on the World Map.
7/// @ingroup bases
8/// @paramtable
9class daWmCannon_c : public dWmObjActor_c {
10public:
11 daWmCannon_c(); ///< @copydoc dWmObjActor_c::dWmObjActor_c
12 ~daWmCannon_c(); ///< @copydoc dWmObjActor_c::~dWmObjActor_c
13
14 virtual int create();
15 virtual int execute();
16 virtual int draw();
17 virtual int doDelete();
18
19 virtual void setCutEndSpecific(int cutsceneCommandId, bool param2);
20
21 void setClipSphere(); ///< Sets the @ref mClipSphere "clip sphere" for the actor.
22 void createModel(); ///< Initializes the resources for the actor.
23 void calcModel(); ///< Updates the model's transformation matrix.
24
25 dHeapAllocator_c mAllocator; ///< The allocator.
26 m3d::smdl_c mModel; ///< The model.
27 u32 mUnk200; ///< @unused
28};
dWmObjActor_c()
Constructs a new object.
dHeapAllocator_c mAllocator
The allocator.
virtual int draw()
do method for the draw operation.
virtual int create()
do method for the create operation.
virtual int doDelete()
do method for the delete operation.
void createModel()
Initializes the resources for the actor.
void calcModel()
Updates the model's transformation matrix.
m3d::smdl_c mModel
The model.
void setClipSphere()
Sets the clip sphere for the actor.
~daWmCannon_c()
Destroys the object.
virtual void setCutEndSpecific(int cutsceneCommandId, bool param2)
virtual int execute()
do method for the execute operation.
daWmCannon_c()
Constructs a new object.