SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MercatorTransformCube Class Reference
Inheritance diagram for MercatorTransformCube:
AreaObj NameObj

Public Member Functions

 MercatorTransformCube (int, const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
void convertTransAndRotate (TVec3f *, TPos3f *, const TVec3f &, bool) const
 
f32 getSphereRadius () const
 
void calcUV (TVec2f *, const TVec3f &) const
 
void calcLocalBoxSize (TVec3f *) const
 
- Public Member Functions inherited from AreaObj
 AreaObj (int, const char *)
 
virtual bool isInVolume (const TVec3f &) const
 
virtual const char * getManagerName () const
 
void onSwitchA ()
 
void offSwitchA ()
 
bool isOnSwitchA () const
 
bool isOnSwitchB () const
 
bool isValidSwitchA () const
 
bool isValidSwitchB () const
 
void setFollowMtx (const TPos3f *)
 
TPos3f * getFollowMtx () const
 
void validate ()
 
void invalidate ()
 
bool isValid () const
 
void awake ()
 
void sleep ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void initAfterPlacement ()
 
virtual void movement ()
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
virtual void calcAnim ()
 
virtual void calcViewAndEntry ()
 
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

TMtx34f _3C
 
- Public Attributes inherited from AreaObj
AreaFormmForm
 
int mType
 
bool mValid
 
bool _15
 
bool mAwake
 
s32 mObjArg0
 
s32 mObjArg1
 
s32 mObjArg2
 
s32 mObjArg3
 
s32 mObjArg4
 
s32 mObjArg5
 
s32 mObjArg6
 
s32 mObjArg7
 
StageSwitchCtrlmSwitchCtrl
 
- 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

Definition at line 5 of file MercatorTransformCube.hpp.

Constructor & Destructor Documentation

◆ MercatorTransformCube()

MercatorTransformCube::MercatorTransformCube ( int type,
const char * pName )

Definition at line 4 of file MercatorTransformCube.cpp.

◆ ~MercatorTransformCube()

MercatorTransformCube::~MercatorTransformCube ( )
virtual

Definition at line 8 of file MercatorTransformCube.cpp.

Member Function Documentation

◆ init()

void MercatorTransformCube::init ( const JMapInfoIter & rIter)
virtual

Intializes the NameObj and can set various settings and construct necessary classes.

Parameters
rIterA reference to the JMapInfoIter that supplies BCSV information.

Reimplemented from AreaObj.

Definition at line 12 of file MercatorTransformCube.cpp.

◆ getSphereRadius()

f32 MercatorTransformCube::getSphereRadius ( ) const

Definition at line 19 of file MercatorTransformCube.cpp.

◆ calcUV()

void MercatorTransformCube::calcUV ( TVec2f * uv,
const TVec3f & a2 ) const

Definition at line 27 of file MercatorTransformCube.cpp.

◆ calcLocalBoxSize()

void MercatorTransformCube::calcLocalBoxSize ( TVec3f * pPos) const

Definition at line 39 of file MercatorTransformCube.cpp.

Member Data Documentation

◆ _3C

TMtx34f MercatorTransformCube::_3C

Definition at line 17 of file MercatorTransformCube.hpp.