SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
NameObj.hpp
1#pragma once
2
3#include <revolution.h>
4#include "Game/Util/JMapInfo.hpp"
5
6namespace MR {
7 void notifyRequestNameObjMovementOnOff();
8}
9
11class NameObj {
12public:
15 NameObj(const char *pName);
16
17 virtual ~NameObj();
20 virtual void init(const JMapInfoIter &rIter);
21 virtual void initAfterPlacement();
22 virtual void movement();
24 virtual void draw() const;
25 virtual void calcAnim();
26 virtual void calcViewAndEntry();
27
29 void initWithoutIter();
32 void setName(const char *pName);
33 void executeMovement();
34 void requestSuspend();
35 void requestResume();
36 void syncWithFlags();
37
38 /* 0x4 */ const char* mName;
39 /* 0x8 */ volatile u16 mFlags;
40 /* 0xA */ s16 mExecutorIdx;
41};
42
45public:
46 static void requestMovementOn(NameObj *);
47 static void requestMovementOff(NameObj *);
48};
Contains static functions to begin and end movement in a NameObj.
Definition NameObj.hpp:44
The most basic form of an object.
Definition NameObj.hpp:11
volatile u16 mFlags
Flags in relation to movement.
Definition NameObj.hpp:39
void setName(const char *pName)
Sets the NameObj's mName.
Definition NameObj.cpp:48
void initWithoutIter()
Initializes a NameObj without a JMapInfoIter instance.
Definition NameObj.cpp:41
virtual void draw() const
Draws the object. Does nothing until overridden.
Definition NameObj.cpp:29
s16 mExecutorIdx
The index into the NameObjExecuteInfo array.
Definition NameObj.hpp:40
const char * mName
A string to identify the NameObj.
Definition NameObj.hpp:38
virtual void init(const JMapInfoIter &rIter)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition NameObj.cpp:17
NameObj(const char *pName)
Constructs a new NameObj instance.
Definition NameObj.cpp:6