SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NameObjAdaptor Class Reference

Implementation of a NameObj that stores function pointers to movement, calcAnim, calcView, and draw functions. More...

#include <NameObjAdaptor.hpp>

Inheritance diagram for NameObjAdaptor:
NameObj

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::FunctorBasemMovementFunc
 
MR::FunctorBasemCalcAnimFunc
 
MR::FunctorBasemCalcViewFunc
 
MR::FunctorBasemDrawAnimFunc
 
- 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.
 

Detailed Description

Implementation of a NameObj that stores function pointers to movement, calcAnim, calcView, and draw functions.

Definition at line 7 of file NameObjAdaptor.hpp.

Constructor & Destructor Documentation

◆ NameObjAdaptor()

NameObjAdaptor::NameObjAdaptor ( const char * pName)

Definition at line 3 of file NameObjAdaptor.cpp.

◆ ~NameObjAdaptor()

NameObjAdaptor::~NameObjAdaptor ( )
virtual

Definition at line 10 of file NameObjAdaptor.cpp.

Member Function Documentation

◆ movement()

void NameObjAdaptor::movement ( )
virtual

Reimplemented from NameObj.

Definition at line 17 of file NameObjAdaptor.cpp.

◆ draw()

void NameObjAdaptor::draw ( ) const
virtual

Draws the object. Does nothing until overridden.

Reimplemented from NameObj.

Definition at line 35 of file NameObjAdaptor.cpp.

◆ calcAnim()

void NameObjAdaptor::calcAnim ( )
virtual

Reimplemented from NameObj.

Definition at line 23 of file NameObjAdaptor.cpp.

◆ calcViewAndEntry()

void NameObjAdaptor::calcViewAndEntry ( )
virtual

Reimplemented from NameObj.

Definition at line 29 of file NameObjAdaptor.cpp.

◆ connectToMovement()

void NameObjAdaptor::connectToMovement ( const MR::FunctorBase & rFunctor)

Definition at line 41 of file NameObjAdaptor.cpp.

◆ connectToCalcAnim()

void NameObjAdaptor::connectToCalcAnim ( const MR::FunctorBase & rFunctor)

Definition at line 45 of file NameObjAdaptor.cpp.

◆ connectToDraw()

void NameObjAdaptor::connectToDraw ( const MR::FunctorBase & rFunctor)

Definition at line 49 of file NameObjAdaptor.cpp.

Member Data Documentation

◆ mMovementFunc

MR::FunctorBase* NameObjAdaptor::mMovementFunc

Definition at line 21 of file NameObjAdaptor.hpp.

◆ mCalcAnimFunc

MR::FunctorBase* NameObjAdaptor::mCalcAnimFunc

Definition at line 22 of file NameObjAdaptor.hpp.

◆ mCalcViewFunc

MR::FunctorBase* NameObjAdaptor::mCalcViewFunc

Definition at line 23 of file NameObjAdaptor.hpp.

◆ mDrawAnimFunc

MR::FunctorBase* NameObjAdaptor::mDrawAnimFunc

Definition at line 24 of file NameObjAdaptor.hpp.