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

Public Member Functions

 CrystalCage (const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void kill ()
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *)
 
void forceBreak ()
 
void initMapToolInfo (const JMapInfoIter &)
 
void initModel (const char *)
 
void tryOnSwitchDead ()
 
void exeWait ()
 
void exeBreak ()
 
void exeBreakAfter ()
 
- 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 appear ()
 
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 control ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual void updateHitSensor (HitSensor *)
 
virtual bool receiveMsgPush (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTake (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTaken (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgThrow (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgApart (HitSensor *, HitSensor *)
 
virtual bool receiveOtherMsg (u32, 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

s32 mCrystalCageType
 
ModelObjmBreakObj
 
TPos3f _94
 
s32 _C4
 
s32 _C8
 
RumbleCalculatorCosMultLinearmRumbleCalc
 
TVec3f _D0
 
TVec3f _DC
 
TVec3f _E8
 
DummyDisplayModelmDisplayModel
 
TVec3f _F8
 
bool _104
 
u8 _105
 
u8 _106
 
u8 _107
 
s32 _108
 
bool mIsBreakObjVisible
 
bool mPlayRiddleSFX
 
bool mHasBinding
 
u8 _10F
 
TVec3f _110
 
- 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.
 

Detailed Description

Definition at line 6 of file CrystalCage.hpp.

Constructor & Destructor Documentation

◆ CrystalCage()

CrystalCage::CrystalCage ( const char * pName)

Definition at line 6 of file CrystalCage.cpp.

◆ ~CrystalCage()

CrystalCage::~CrystalCage ( )
virtual

Definition at line 421 of file CrystalCage.cpp.

Member Function Documentation

◆ init()

void CrystalCage::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 LiveActor.

Definition at line 12 of file CrystalCage.cpp.

◆ initAfterPlacement()

void CrystalCage::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 119 of file CrystalCage.cpp.

◆ kill()

void CrystalCage::kill ( )
virtual

Reimplemented from LiveActor.

Definition at line 142 of file CrystalCage.cpp.

◆ attackSensor()

void CrystalCage::attackSensor ( HitSensor * a1,
HitSensor * a2 )
virtual

Reimplemented from LiveActor.

Definition at line 166 of file CrystalCage.cpp.

◆ receiveMsgPlayerAttack()

bool CrystalCage::receiveMsgPlayerAttack ( u32 msg,
HitSensor * a2,
HitSensor * a3 )
virtual

Reimplemented from LiveActor.

Definition at line 172 of file CrystalCage.cpp.

◆ receiveMsgEnemyAttack()

bool CrystalCage::receiveMsgEnemyAttack ( u32 msg,
HitSensor * ,
HitSensor *  )
virtual

Reimplemented from LiveActor.

Definition at line 213 of file CrystalCage.cpp.

◆ forceBreak()

void CrystalCage::forceBreak ( )

Definition at line 151 of file CrystalCage.cpp.

◆ initMapToolInfo()

void CrystalCage::initMapToolInfo ( const JMapInfoIter & rIter)

Definition at line 225 of file CrystalCage.cpp.

◆ initModel()

void CrystalCage::initModel ( const char * pName)

Definition at line 257 of file CrystalCage.cpp.

◆ tryOnSwitchDead()

void CrystalCage::tryOnSwitchDead ( )

Definition at line 276 of file CrystalCage.cpp.

◆ exeWait()

void CrystalCage::exeWait ( )

Definition at line 292 of file CrystalCage.cpp.

◆ exeBreak()

void CrystalCage::exeBreak ( )

Definition at line 322 of file CrystalCage.cpp.

◆ exeBreakAfter()

void CrystalCage::exeBreakAfter ( )

Definition at line 393 of file CrystalCage.cpp.

Member Data Documentation

◆ mCrystalCageType

s32 CrystalCage::mCrystalCageType

Definition at line 26 of file CrystalCage.hpp.

◆ mBreakObj

ModelObj* CrystalCage::mBreakObj

Definition at line 27 of file CrystalCage.hpp.

◆ _94

TPos3f CrystalCage::_94

Definition at line 28 of file CrystalCage.hpp.

◆ _C4

s32 CrystalCage::_C4

Definition at line 29 of file CrystalCage.hpp.

◆ _C8

s32 CrystalCage::_C8

Definition at line 30 of file CrystalCage.hpp.

◆ mRumbleCalc

RumbleCalculatorCosMultLinear* CrystalCage::mRumbleCalc

Definition at line 31 of file CrystalCage.hpp.

◆ _D0

TVec3f CrystalCage::_D0

Definition at line 32 of file CrystalCage.hpp.

◆ _DC

TVec3f CrystalCage::_DC

Definition at line 33 of file CrystalCage.hpp.

◆ _E8

TVec3f CrystalCage::_E8

Definition at line 34 of file CrystalCage.hpp.

◆ mDisplayModel

DummyDisplayModel* CrystalCage::mDisplayModel

Definition at line 35 of file CrystalCage.hpp.

◆ _F8

TVec3f CrystalCage::_F8

Definition at line 36 of file CrystalCage.hpp.

◆ _104

bool CrystalCage::_104

Definition at line 37 of file CrystalCage.hpp.

◆ _105

u8 CrystalCage::_105

Definition at line 38 of file CrystalCage.hpp.

◆ _106

u8 CrystalCage::_106

Definition at line 39 of file CrystalCage.hpp.

◆ _107

u8 CrystalCage::_107

Definition at line 40 of file CrystalCage.hpp.

◆ _108

s32 CrystalCage::_108

Definition at line 41 of file CrystalCage.hpp.

◆ mIsBreakObjVisible

bool CrystalCage::mIsBreakObjVisible

Definition at line 42 of file CrystalCage.hpp.

◆ mPlayRiddleSFX

bool CrystalCage::mPlayRiddleSFX

Definition at line 43 of file CrystalCage.hpp.

◆ mHasBinding

bool CrystalCage::mHasBinding

Definition at line 44 of file CrystalCage.hpp.

◆ _10F

u8 CrystalCage::_10F

Definition at line 45 of file CrystalCage.hpp.

◆ _110

TVec3f CrystalCage::_110

Definition at line 46 of file CrystalCage.hpp.