NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_base.hpp
1#pragma once
2#include <game/framework/f_base.hpp>
4
41class dBase_c : public fBase_c, public cOwnerSetMg_c {
42public:
44 dBase_c();
45
46 virtual int preCreate();
47 virtual void postCreate(fBase_c::MAIN_STATE_e status);
48
49 virtual int preDelete();
50 virtual void postDelete(fBase_c::MAIN_STATE_e status);
51
52 virtual int preExecute();
53 virtual void postExecute(fBase_c::MAIN_STATE_e status);
54
55 virtual int preDraw();
56 virtual void postDraw(fBase_c::MAIN_STATE_e status);
57
59 virtual ~dBase_c();
60
62 virtual const char *getKindString() const;
63
65 static dBase_c *searchBaseByProfName(ProfileName profile, const dBase_c* parent);
66
68 static void initLoader();
69
71 static dBase_c *createBase(ProfileName profName, dBase_c *parent, unsigned long param, u8 groupType);
72
74 static dBase_c *createRoot(ProfileName profName, unsigned long param, u8 groupType);
75
76private:
77 const char* mpKindString;
78 const char* mpNameString;
79
83 static int loadAsyncCallback();
84
87 static void unloadCallback();
88};
A set container. See cOwnerSetNd_c.
The minimum required implementation for a base.
Definition d_base.hpp:41
dBase_c()
Constructs a new base.
Definition d_base.cpp:12
static void initLoader()
[Unused]. Sets the callbacks for the scrapped relocatable profile system.
Definition d_base.cpp:81
virtual int preDelete()
pre method for the delete operation.
Definition d_base.cpp:45
virtual ~dBase_c()
Destroys the base.
Definition d_base.cpp:16
virtual void postExecute(fBase_c::MAIN_STATE_e status)
post method for the execute operation.
Definition d_base.cpp:58
const char * mpKindString
[Unused]. The base's kind string.
Definition d_base.hpp:77
virtual void postDraw(fBase_c::MAIN_STATE_e status)
post method for the draw operation.
Definition d_base.cpp:67
virtual void postCreate(fBase_c::MAIN_STATE_e status)
post method for the create operation.
Definition d_base.cpp:41
const char * mpNameString
[Unused]. The base's profile name string.
Definition d_base.hpp:78
virtual const char * getKindString() const
Gets the base's kind string.
Definition d_base.cpp:71
virtual int preDraw()
pre method for the draw operation.
Definition d_base.cpp:62
static dBase_c * createRoot(ProfileName profName, unsigned long param, u8 groupType)
Creates a root base.
Definition d_base.cpp:90
virtual void postDelete(fBase_c::MAIN_STATE_e status)
post method for the delete operation.
Definition d_base.cpp:49
virtual int preExecute()
pre method for the execute operation.
Definition d_base.cpp:53
virtual int preCreate()
pre method for the create operation.
Definition d_base.cpp:37
static dBase_c * createBase(ProfileName profName, dBase_c *parent, unsigned long param, u8 groupType)
Creates a child base under the given parent.
Definition d_base.cpp:86
static void unloadCallback()
[Unused]. Module unloading callback for the scrapped relocatable profile system.
Definition d_base.cpp:79
static int loadAsyncCallback()
[Unused]. Module loading callback for the scrapped relocatable profile system.
Definition d_base.cpp:75
static dBase_c * searchBaseByProfName(ProfileName profile, const dBase_c *parent)
Searches for a base with a given profile name, optionally under a given parent.
Definition d_base.cpp:18
The base class for all scenes, actors and various other processes.
Definition f_base.hpp:119
MAIN_STATE_e
The possible operation results.
Definition f_base.hpp:137
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.
Definition f_profile.hpp:32