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

Public Member Functions

 GeneralMapParts (const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void appear ()
 
virtual void kill ()
 
virtual void control ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
void initMapPartsFunction (const JMapInfoIter &)
 
void initSensorType (const JMapInfoIter &)
 
void initGravity (const JMapInfoIter &)
 
void receiveMsgSwitchBOn ()
 
void receiveMsgSwitchBOff ()
 
void broadcastMsgToAllFunctions (u32)
 
bool isFixed () const
 
void startMove ()
 
void exeWait ()
 
void exeMoveStart ()
 
- Public Member Functions inherited from MapParts
 MapParts (const char *)
 
virtual s32 getSensorNumMax () const
 
virtual void connectToScene ()
 
void initModelAndCollision (const JMapInfoIter &)
 
- Public Member Functions inherited from LiveActor
 LiveActor (const char *pName)
 Constructs a new LiveActor instance.
 
virtual void movement ()
 
virtual void calcAnim ()
 
virtual void calcViewAndEntry ()
 
virtual void makeActorAppeared ()
 
virtual void makeActorDead ()
 
virtual bool receiveMessage (u32, HitSensor *, HitSensor *)
 
virtual MtxPtr getBaseMtx () const
 Gets the base matrix of the model used for the actor.
 
virtual MtxPtr getTakingMtx () const
 
virtual void startClipped ()
 
virtual void endClipped ()
 
virtual void updateHitSensor (HitSensor *)
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPush (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTake (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTaken (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgThrow (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgApart (HitSensor *, HitSensor *)
 
void calcAnmMtx ()
 
void setNerve (const Nerve *)
 
bool isNerve (const Nerve *) const
 
s32 getNerveStep () const
 
HitSensorgetSensor (const char *pSensorName) const
 Gets a sensor.
 
void initModelManagerWithAnm (const char *, const char *, bool)
 
void initNerve (const Nerve *)
 
void initHitSensor (int)
 
void initBinder (f32, f32, u32)
 
void initRailRider (const JMapInfoIter &)
 
void initEffectKeeper (int, const char *, bool)
 
void initSound (int, bool)
 
void initShadowControllerList (u32)
 
void initActorCollisionParts (const char *, HitSensor *, ResourceHolder *, MtxPtr, bool, bool)
 
void initStageSwitch (const JMapInfoIter &)
 
void initActorStarPointerTarget (f32, const TVec3f *, MtxPtr, TVec3f)
 
void initActorLightCtrl ()
 
void addToSoundObjHolder ()
 
void updateBinder ()
 
bool isBinderValid (Binder *pBinder)
 
TVec3f * getPosPtr ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
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

ActorCameraInfomCameraInfo
 
s32 mMoveConditionType
 
s32 mSignMotionType
 
s32 mShadowType
 
MR::Vector< MR::FixedArray< MapPartsFunction *, 8 > > mFunctionArray
 
MapPartsAppearControllermAppearController
 
MapPartsRailRotatormRailRotator
 
MapPartsRailMovermRailMover
 
MapPartsRotatormRotator
 
MapPartsRailGuideDrawermGuideDrawer
 
MapPartsRailPosturemRailPosture
 
u8 _E4
 
u8 _E5
 
- Public Attributes inherited from MapParts
TVec3f _8C
 
- Public Attributes inherited from LiveActor
TVec3f mPosition
 3D vector of the actor's position.
 
TVec3f mRotation
 3D vector of the actor's rotation.
 
TVec3f mScale
 3D vector of the actor's scale.
 
TVec3f mVelocity
 3D vector of the actor's velocity.
 
TVec3f mGravity
 3D vector of the actor's gravity.
 
ModelManagermModelManager
 A pointer to a ModelManager instance, used for drawing a 3D model.
 
ActorAnimKeepermAnimationKeeper
 A pointer to a ActorAnimKeeper instance, used for storing and playing model animations.
 
SpinemSpine
 
HitSensorKeepermSensorKeeper
 A pointer to a HitSensorKeeper instance, used for storing HitSensor instances.
 
BindermBinder
 
RailRidermRailRider
 A pointer to a RailRider instance, used for allowing the actor to ride on paths.
 
EffectKeepermEffectKeeper
 
AudAnmSoundObjectmSoundObject
 
LiveActorFlag mFlags
 Flags relating to drawing, animation calculation, etc.
 
ShadowControllerListmShadowList
 
CollisionPartsmCollisionParts
 
StageSwitchCtrlmStageSwitchCtrl
 A pointer to a StageSwitchCtrl instance, used for activating and deactivating switches.
 
StarPointerTarget * mStarPointerTarget
 
ActorLightCtrlmActorLightCtrl
 
ActorPadAndCameraCtrlmCameraCtrl
 
- 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.
 

Additional Inherited Members

- Static Public Member Functions inherited from MapParts
static s32 getMoveStartSignalTime ()
 

Detailed Description

Definition at line 12 of file GeneralMapParts.hpp.

Constructor & Destructor Documentation

◆ GeneralMapParts()

GeneralMapParts::GeneralMapParts ( const char * pName)

Definition at line 5 of file GeneralMapParts.cpp.

Member Function Documentation

◆ init()

void GeneralMapParts::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 MapParts.

Definition at line 21 of file GeneralMapParts.cpp.

◆ initAfterPlacement()

void GeneralMapParts::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 51 of file GeneralMapParts.cpp.

◆ appear()

void GeneralMapParts::appear ( )
virtual

Reimplemented from MapParts.

Definition at line 63 of file GeneralMapParts.cpp.

◆ kill()

virtual void GeneralMapParts::kill ( )
virtual

Reimplemented from LiveActor.

◆ control()

void GeneralMapParts::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 96 of file GeneralMapParts.cpp.

◆ calcAndSetBaseMtx()

void GeneralMapParts::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 136 of file GeneralMapParts.cpp.

◆ receiveOtherMsg()

bool GeneralMapParts::receiveOtherMsg ( u32 msg,
HitSensor * a2,
HitSensor * a3 )
virtual

Reimplemented from LiveActor.

Definition at line 83 of file GeneralMapParts.cpp.

◆ initMapPartsFunction()

void GeneralMapParts::initMapPartsFunction ( const JMapInfoIter & rIter)

Definition at line 178 of file GeneralMapParts.cpp.

◆ initSensorType()

void GeneralMapParts::initSensorType ( const JMapInfoIter & rIter)

Definition at line 207 of file GeneralMapParts.cpp.

◆ initGravity()

void GeneralMapParts::initGravity ( const JMapInfoIter & rIter)

Definition at line 219 of file GeneralMapParts.cpp.

◆ receiveMsgSwitchBOff()

void GeneralMapParts::receiveMsgSwitchBOff ( )

Definition at line 256 of file GeneralMapParts.cpp.

◆ isFixed()

bool GeneralMapParts::isFixed ( ) const

Definition at line 264 of file GeneralMapParts.cpp.

◆ startMove()

void GeneralMapParts::startMove ( )

Definition at line 272 of file GeneralMapParts.cpp.

◆ exeWait()

void GeneralMapParts::exeWait ( )

Definition at line 297 of file GeneralMapParts.cpp.

◆ exeMoveStart()

void GeneralMapParts::exeMoveStart ( )

Definition at line 306 of file GeneralMapParts.cpp.

Member Data Documentation

◆ mCameraInfo

ActorCameraInfo* GeneralMapParts::mCameraInfo

Definition at line 36 of file GeneralMapParts.hpp.

◆ mMoveConditionType

s32 GeneralMapParts::mMoveConditionType

Definition at line 37 of file GeneralMapParts.hpp.

◆ mSignMotionType

s32 GeneralMapParts::mSignMotionType

Definition at line 38 of file GeneralMapParts.hpp.

◆ mShadowType

s32 GeneralMapParts::mShadowType

Definition at line 39 of file GeneralMapParts.hpp.

◆ mFunctionArray

MR::Vector<MR::FixedArray<MapPartsFunction *, 8> > GeneralMapParts::mFunctionArray

Definition at line 40 of file GeneralMapParts.hpp.

◆ mAppearController

MapPartsAppearController* GeneralMapParts::mAppearController

Definition at line 41 of file GeneralMapParts.hpp.

◆ mRailRotator

MapPartsRailRotator* GeneralMapParts::mRailRotator

Definition at line 42 of file GeneralMapParts.hpp.

◆ mRailMover

MapPartsRailMover* GeneralMapParts::mRailMover

Definition at line 43 of file GeneralMapParts.hpp.

◆ mRotator

MapPartsRotator* GeneralMapParts::mRotator

Definition at line 44 of file GeneralMapParts.hpp.

◆ mGuideDrawer

MapPartsRailGuideDrawer* GeneralMapParts::mGuideDrawer

Definition at line 45 of file GeneralMapParts.hpp.

◆ mRailPosture

MapPartsRailPosture* GeneralMapParts::mRailPosture

Definition at line 46 of file GeneralMapParts.hpp.

◆ _E4

u8 GeneralMapParts::_E4

Definition at line 47 of file GeneralMapParts.hpp.

◆ _E5

u8 GeneralMapParts::_E5

Definition at line 48 of file GeneralMapParts.hpp.