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

Public Member Functions

 WarpCube (int type, const char *pName)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void movement ()
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
- 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 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

JMapIdInfomMapIdInfo
 
ActorCameraInfomCameraInfo
 
char * mEventName
 
u16 _48
 
u8 _4A [2]
 
- 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 8 of file WarpCube.hpp.

Constructor & Destructor Documentation

◆ WarpCube()

WarpCube::WarpCube ( int type,
const char * pName )
inline

Definition at line 10 of file WarpCube.hpp.

◆ ~WarpCube()

WarpCube::~WarpCube ( )
virtual

Definition at line 7 of file WarpCube.cpp.

Member Function Documentation

◆ init()

void WarpCube::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 64 of file WarpCube.cpp.

◆ movement()

void WarpCube::movement ( )
virtual

Reimplemented from NameObj.

Definition at line 11 of file WarpCube.cpp.

◆ draw()

void WarpCube::draw ( ) const
virtual

Draws the object. Does nothing until overridden.

Reimplemented from NameObj.

Definition at line 28 of file WarpCube.cpp.

Member Data Documentation

◆ mMapIdInfo

JMapIdInfo* WarpCube::mMapIdInfo

Definition at line 20 of file WarpCube.hpp.

◆ mCameraInfo

ActorCameraInfo* WarpCube::mCameraInfo

Definition at line 21 of file WarpCube.hpp.

◆ mEventName

char* WarpCube::mEventName

Definition at line 22 of file WarpCube.hpp.

◆ _48

u16 WarpCube::_48

Definition at line 23 of file WarpCube.hpp.

◆ _4A

u8 WarpCube::_4A[2]

Definition at line 24 of file WarpCube.hpp.