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 doDelete() { return SUCCEEDED; }
24
25 virtual int GetActorType() { return ACTOR_MAP_OBJECT; }
26
27 virtual void vf74() {} ///< @unofficial
28 virtual bool vf78() { return false; } ///< @unofficial
29
30 int GetOpenStatus(); ///< @copybrief dWmLib::GetOpenStatus
31 int GetClearStatus(); ///< @copybrief dWmLib::GetClearStatus
32 int GetCurrentPlayResultStatus(); ///< @copybrief dWmLib::GetCurrentPlayResultStatus
33
34 bool IsCourseOmoteClear(); ///< @copybrief dWmLib::IsCourseOmoteClear
35 bool IsCourseUraClear(); ///< @copybrief dWmLib::IsCourseUraClear
36 bool IsCourseOtasukeClear(); ///< @copybrief dWmLib::IsCourseOtasukeClear
37 bool IsCourseClear(); ///< @copybrief dWmLib::IsCourseClear
38 bool IsCourseFirstOmoteClear(); ///< @copybrief dWmLib::IsCourseFirstOmoteClear
39 bool IsCourseFirstUraClear(); ///< @copybrief dWmLib::IsCourseFirstUraClear
40 bool IsCourseFailed(); ///< @copybrief dWmLib::IsCourseFailed
41 bool IsCourseFirstClear(); ///< @copybrief dWmLib::IsCourseFirstClear
42 bool IsCourseOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseOtasukeClearSimple
43 bool IsCourseOmoteClearSimple(); ///< @copybrief dWmLib::IsCourseOmoteClearSimple
44 bool IsCourseUraClearSimple(); ///< @copybrief dWmLib::IsCourseUraClearSimple
45 bool IsCourseUraOtasukeClearSimple(); ///< @copybrief dWmLib::IsCourseUraOtasukeClearSimple
46
47 int mResNodeIdx; ///< The index of the model's root resource node.
48
49 ACTOR_PARAM_CONFIG(CourseNo, 0, 8); ///< The level number associated to the object.
50 ACTOR_PARAM_CONFIG(PathNode, 8, 8); ///< The path node associated to the object.
51};
@ 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()
virtual int doDelete()
do method for the delete operation.
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.
@ SUCCEEDED
The step was completed successfully.
Definition f_base.hpp:47