|
SMG-Decomp
A decompilation of Super Mario Galaxy 1
|
Implementation of a NameObj that stores function pointers to movement, calcAnim, calcView, and draw functions. More...
#include <NameObjAdaptor.hpp>
Public Member Functions | |
| NameObjAdaptor (const char *) | |
| virtual void | movement () |
| virtual void | draw () const |
| Draws the object. Does nothing until overridden. | |
| virtual void | calcAnim () |
| virtual void | calcViewAndEntry () |
| void | connectToMovement (const MR::FunctorBase &) |
| void | connectToCalcAnim (const MR::FunctorBase &) |
| void | connectToDraw (const MR::FunctorBase &) |
Public Member Functions inherited from NameObj | |
| NameObj (const char *pName) | |
| Constructs a new NameObj instance. | |
| virtual void | init (const JMapInfoIter &rIter) |
| Intializes the NameObj and can set various settings and construct necessary classes. | |
| virtual void | initAfterPlacement () |
| void | initWithoutIter () |
| Initializes a NameObj without a JMapInfoIter instance. | |
| void | setName (const char *pName) |
| Sets the NameObj's mName. | |
| void | executeMovement () |
| void | requestSuspend () |
| void | requestResume () |
| void | syncWithFlags () |
Public Attributes | |
| MR::FunctorBase * | mMovementFunc |
| MR::FunctorBase * | mCalcAnimFunc |
| MR::FunctorBase * | mCalcViewFunc |
| MR::FunctorBase * | mDrawAnimFunc |
Public Attributes inherited from NameObj | |
| const char * | mName |
| A string to identify the NameObj. | |
| volatile u16 | mFlags |
| Flags in relation to movement. | |
| s16 | mExecutorIdx |
| The index into the NameObjExecuteInfo array. | |
Implementation of a NameObj that stores function pointers to movement, calcAnim, calcView, and draw functions.
Definition at line 7 of file NameObjAdaptor.hpp.
| NameObjAdaptor::NameObjAdaptor | ( | const char * | pName | ) |
Definition at line 3 of file NameObjAdaptor.cpp.
|
virtual |
Definition at line 10 of file NameObjAdaptor.cpp.
|
virtual |
Reimplemented from NameObj.
Definition at line 17 of file NameObjAdaptor.cpp.
|
virtual |
Draws the object. Does nothing until overridden.
Reimplemented from NameObj.
Definition at line 35 of file NameObjAdaptor.cpp.
|
virtual |
Reimplemented from NameObj.
Definition at line 23 of file NameObjAdaptor.cpp.
|
virtual |
Reimplemented from NameObj.
Definition at line 29 of file NameObjAdaptor.cpp.
| void NameObjAdaptor::connectToMovement | ( | const MR::FunctorBase & | rFunctor | ) |
Definition at line 41 of file NameObjAdaptor.cpp.
| void NameObjAdaptor::connectToCalcAnim | ( | const MR::FunctorBase & | rFunctor | ) |
Definition at line 45 of file NameObjAdaptor.cpp.
| void NameObjAdaptor::connectToDraw | ( | const MR::FunctorBase & | rFunctor | ) |
Definition at line 49 of file NameObjAdaptor.cpp.
| MR::FunctorBase* NameObjAdaptor::mMovementFunc |
Definition at line 21 of file NameObjAdaptor.hpp.
| MR::FunctorBase* NameObjAdaptor::mCalcAnimFunc |
Definition at line 22 of file NameObjAdaptor.hpp.
| MR::FunctorBase* NameObjAdaptor::mCalcViewFunc |
Definition at line 23 of file NameObjAdaptor.hpp.
| MR::FunctorBase* NameObjAdaptor::mDrawAnimFunc |
Definition at line 24 of file NameObjAdaptor.hpp.