NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_wm_obj_actor.hpp
1#pragma once
2#include <game/bases/d_wm_demo_actor.hpp>
3
4/**
5 * @brief The minimum required implementation for world map objects.
6 * @paramtable
7 * @details World map objects are event-driven decorative objects, which can be associated
8 * with a specific level or path node.
9 * @hint{If the object is not attached to a level or path node, the corresponding parameters
10 * can be overridden.}
11 * @ingroup bases
12*/
14public:
15 dWmObjActor_c() : mResNodeIdx(-1) {} ///< Constructs a new object.
16 ~dWmObjActor_c() {} ///< Destroys the object.
17
18 virtual int GetActorType() { return ACTOR_MAP_OBJECT; }
19
20 virtual void vf74() {} ///< @unofficial
21 virtual bool vf78() { return false; } ///< @unofficial
22
23 int GetOpenStatus(); ///< @copybrief dWmLib::GetOpenStatus
24 int GetClearStatus(); ///< @copybrief dWmLib::GetClearStatus
25 int GetCurrentPlayResultStatus(); ///< @copybrief dWmLib::GetCurrentPlayResultStatus
26
27 bool IsCourseOmoteClear(); ///< @copybrief dWmLib::IsCourseOmoteClear
28 bool IsCourseUraClear(); ///< @copybrief dWmLib::IsCourseUraClear
29 bool IsCourseOtasukeClear(); ///< @copybrief dWmLib::IsCourseOtasukeClear
30 bool IsCourseClear(); ///< @copybrief dWmLib::IsCourseClear
31 bool IsCourseFirstOmoteClear(); ///< @copybrief dWmLib::IsCourseFirstOmoteClear
32 bool IsCourseFirstUraClear(); ///< @copybrief dWmLib::IsCourseFirstUraClear
33 bool IsCourseFailed(); ///< @copybrief dWmLib::IsCourseFailed
34 bool IsCourseFirstClear(); ///< @copybrief dWmLib::IsCourseFirstClear
35 bool IsCourseOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseOtasukeClearSimple
36 bool IsCourseOmoteClearSimple(); ///< @copybrief dWmLib::IsCourseOmoteClearSimple
37 bool IsCourseUraClearSimple(); ///< @copybrief dWmLib::IsCourseUraClearSimple
38 bool IsCourseUraOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseUraOtasukeClearSimple
39
40 u8 mUnk174[0x10]; ///< @unused
41 int mResNodeIdx; ///< The index of the model's root resource node. Always set to @p -1.
42
43 ACTOR_PARAM_CONFIG(CourseNo, 0, 8); ///< The level number associated to the object.
44 ACTOR_PARAM_CONFIG(PathNode, 8, 8); ///< The path node associated to the object.
45};
@ ACTOR_MAP_OBJECT
A map object (dWmObjActor_c).
dWmDemoActor_c()
Constructs a new actor.
bool IsCourseOtasukeClearSimple()
~dWmObjActor_c()
Destroys the object.
int mResNodeIdx
The index of the model's root resource node. Always set to -1.
bool IsCourseUraClearSimple()
bool IsCourseFirstUraClear()
bool IsCourseOmoteClearSimple()
virtual int GetActorType()
Gets the actor kind. See ACTOR_KIND_e.
bool IsCourseFirstClear()
bool IsCourseFirstOmoteClear()
bool IsCourseUraOtasukeClearSimple()
int GetCurrentPlayResultStatus()
bool IsCourseOmoteClear()
ACTOR_PARAM_CONFIG(CourseNo, 0, 8)
The level number associated to the object.
virtual bool vf78()
virtual void vf74()
dWmObjActor_c()
Constructs a new object.
bool IsCourseOtasukeClear()
ACTOR_PARAM_CONFIG(PathNode, 8, 8)
The path node associated to the object.