|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_center_save_mng.hpp>
A manager for saving and restoring rotation state of daObjCenter2_c actors.
Definition at line 7 of file d_center_save_mng.hpp.
Classes | |
| class | Entry_c |
| An entry in the rotation state manager. More... | |
Public Member Functions | |
| dCenterSaveMng_c () | |
| Constructs a new manager. | |
| ~dCenterSaveMng_c () | |
| Destroys the manager. | |
| bool | center_check (const mVec3_c *pos, u8 id, short *outRotation) |
| Tries to restore the rotation from a given position and ID. | |
| void | center_entry (const mVec3_c *pos, u8 id, short rotation) |
| Saves the rotation state for a given position and ID. | |
Static Public Attributes | |
| static dCenterSaveMng_c * | m_instance |
| The singleton instance of the manager. | |
| static cLineMg_c | ms_linkManager |
| The linked list manager for the saved rotation states. | |
Static Private Member Functions | |
| static void | allDoDelete () |
| Clears all saved rotation states. | |
| dCenterSaveMng_c::dCenterSaveMng_c | ( | ) |
Constructs a new manager.
Definition at line 6 of file d_center_save_mng.cpp.
| dCenterSaveMng_c::~dCenterSaveMng_c | ( | ) |
Destroys the manager.
Definition at line 10 of file d_center_save_mng.cpp.
| bool dCenterSaveMng_c::center_check | ( | const mVec3_c * | pos, |
| u8 | id, | ||
| short * | outRotation ) |
Tries to restore the rotation from a given position and ID.
| pos | The position to check. |
| id | The ID to check. |
| outRotation | The output rotation value if a match is found. |
Definition at line 26 of file d_center_save_mng.cpp.
| void dCenterSaveMng_c::center_entry | ( | const mVec3_c * | pos, |
| u8 | id, | ||
| short | rotation ) |
Saves the rotation state for a given position and ID.
| pos | The position to save. |
| id | The ID to save. |
| rotation | The rotation value to save. |
Definition at line 46 of file d_center_save_mng.cpp.
|
staticprivate |
Clears all saved rotation states.
Definition at line 15 of file d_center_save_mng.cpp.
|
static |
The singleton instance of the manager.
Definition at line 52 of file d_center_save_mng.hpp.
|
static |
The linked list manager for the saved rotation states.
Definition at line 53 of file d_center_save_mng.hpp.