NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_a_obj_center.hpp
1#pragma once
2
3#include <game/bases/d_actor.hpp>
4
5/// @brief A controller for swaying objects around a center point.
6/// @statetable
7/// @paramtable
8/// @ingroup bases
9class daObjCenter_c : public dActor_c {
10public:
11 daObjCenter_c() {} ///< @copydoc dActorState_c::dActorState_c
12 ~daObjCenter_c() {} ///< @copydoc dActorState_c::~dActorState_c
13
14 virtual int create() override;
15 virtual int execute() override;
16
17 short m_392;
18 short m_394;
19 short m_396;
20 short m_398;
21 u8 m_39A;
22 u8 m_39B;
23 u8 mRotationID; ///< The rotation ID to be set on the affected objects.
24
25 ACTOR_PARAM_CONFIG(RotationID, 0, 8); ///< @copydoc mRotationID
26};
dActor_c()
Constructs a new actor.
Definition d_actor.cpp:46
u8 mRotationID
The rotation ID to be set on the affected objects.
virtual int create() override
do method for the create operation.
virtual int execute() override
do method for the execute operation.
~daObjCenter_c()
Destroys the actor.
daObjCenter_c()
Constructs a new actor.
ACTOR_PARAM_CONFIG(RotationID, 0, 8)
The rotation ID to be set on the affected objects.