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 enum PROC_TYPE_e {
16 PROC_TYPE_EXEC,
17 PROC_COUNT
18 };
19
20 dWmObjActor_c() : mResNodeIdx(-1) {} ///< Constructs a new object.
21 ~dWmObjActor_c() {} ///< Destroys the object.
22
23 virtual int GetActorType() { return ACTOR_MAP_OBJECT; }
24
25 virtual void vf74() {} ///< @unofficial
26 virtual bool vf78() { return false; } ///< @unofficial
27
28 int GetOpenStatus(); ///< @copybrief dWmLib::GetOpenStatus
29 int GetClearStatus(); ///< @copybrief dWmLib::GetClearStatus
30 int GetCurrentPlayResultStatus(); ///< @copybrief dWmLib::GetCurrentPlayResultStatus
31
32 bool IsCourseOmoteClear(); ///< @copybrief dWmLib::IsCourseOmoteClear
33 bool IsCourseUraClear(); ///< @copybrief dWmLib::IsCourseUraClear
34 bool IsCourseOtasukeClear(); ///< @copybrief dWmLib::IsCourseOtasukeClear
35 bool IsCourseClear(); ///< @copybrief dWmLib::IsCourseClear
36 bool IsCourseFirstOmoteClear(); ///< @copybrief dWmLib::IsCourseFirstOmoteClear
37 bool IsCourseFirstUraClear(); ///< @copybrief dWmLib::IsCourseFirstUraClear
38 bool IsCourseFailed(); ///< @copybrief dWmLib::IsCourseFailed
39 bool IsCourseFirstClear(); ///< @copybrief dWmLib::IsCourseFirstClear
40 bool IsCourseOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseOtasukeClearSimple
41 bool IsCourseOmoteClearSimple(); ///< @copybrief dWmLib::IsCourseOmoteClearSimple
42 bool IsCourseUraClearSimple(); ///< @copybrief dWmLib::IsCourseUraClearSimple
43 bool IsCourseUraOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseUraOtasukeClearSimple
44
45 int mResNodeIdx; ///< The index of the model's root resource node.
46
47 ACTOR_PARAM_CONFIG(CourseNo, 0, 8); ///< The level number associated to the object.
48 ACTOR_PARAM_CONFIG(PathNode, 8, 8); ///< The path node associated to the object.
49};
@ 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.
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.