1#include "Game/NameObj/NameObj.hpp"
2#include "Game/NameObj/NameObjRegister.hpp"
3#include "Game/SingletonHolder.hpp"
4#include "Game/Util.hpp"
21void NameObj::initAfterPlacement() {
25void NameObj::movement() {
33void NameObj::calcAnim() {
37void NameObj::calcViewAndEntry() {
52void NameObj::executeMovement() {
58void NameObj::requestSuspend() {
66void NameObj::requestResume() {
74void NameObj::syncWithFlags() {
90void NameObjFunction::requestMovementOn(
NameObj *pObj) {
91 pObj->requestResume();
92 MR::notifyRequestNameObjMovementOnOff();
95void NameObjFunction::requestMovementOff(
NameObj *pObj) {
96 pObj->requestSuspend();
97 MR::notifyRequestNameObjMovementOnOff();
The most basic form of an object.
volatile u16 mFlags
Flags in relation to movement.
void setName(const char *pName)
Sets the NameObj's mName.
void initWithoutIter()
Initializes a NameObj without a JMapInfoIter instance.
virtual void draw() const
Draws the object. Does nothing until overridden.
s16 mExecutorIdx
The index into the NameObjExecuteInfo array.
const char * mName
A string to identify the NameObj.
virtual void init(const JMapInfoIter &rIter)
Intializes the NameObj and can set various settings and construct necessary classes.
NameObj(const char *pName)
Constructs a new NameObj instance.