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

Public Types

enum  CageType {
  CAGE_INVALID = 0 , CAGE_NORMAL = 1 , CAGE_LARGE = 2 , CAGE_FIX = 3 ,
  CAGE_TRASH = 4
}
 

Public Member Functions

 BreakableCage (const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void appear ()
 
virtual void kill ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *)
 
const ActorCameraInfogetCamInfo () const
 
void initMapToolInfo (const JMapInfoIter &)
 
void initModel (const char *, const JMapInfoIter &)
 
void initBaseMtxForCage ()
 
bool isTypeCage () const
 
bool isAppearPowerStar () const
 
bool tryBreak ()
 
void exeWait ()
 
void exeBreak ()
 
- 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 control ()
 
virtual void updateHitSensor (HitSensor *)
 
virtual void attackSensor (HitSensor *, 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 initAfterPlacement ()
 
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

TPos3f mMtx
 
ModelObjmBreakModel
 
CageType mCageType
 
f32 mRotationSpeed
 
DummyDisplayModelmItemModel
 
bool mIgnoreGravity
 
bool mDelayDeadActivate
 
const ActorCameraInfomCameraInfo
 
- 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 12 of file BreakableCage.hpp.

Member Enumeration Documentation

◆ CageType

enum BreakableCage::CageType

Definition at line 16 of file BreakableCage.hpp.

Constructor & Destructor Documentation

◆ BreakableCage()

BreakableCage::BreakableCage ( const char * pName)

Definition at line 8 of file BreakableCage.cpp.

◆ ~BreakableCage()

BreakableCage::~BreakableCage ( )
virtual

Definition at line 424 of file BreakableCage.cpp.

Member Function Documentation

◆ init()

virtual void BreakableCage::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.

◆ appear()

void BreakableCage::appear ( )
virtual

Reimplemented from LiveActor.

Definition at line 107 of file BreakableCage.cpp.

◆ kill()

void BreakableCage::kill ( )
virtual

Reimplemented from LiveActor.

Definition at line 127 of file BreakableCage.cpp.

◆ calcAndSetBaseMtx()

void BreakableCage::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 140 of file BreakableCage.cpp.

◆ receiveMsgPlayerAttack()

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

Reimplemented from LiveActor.

Definition at line 174 of file BreakableCage.cpp.

◆ receiveMsgEnemyAttack()

bool BreakableCage::receiveMsgEnemyAttack ( u32 msg,
HitSensor * a2,
HitSensor * a3 )
virtual

Reimplemented from LiveActor.

Definition at line 186 of file BreakableCage.cpp.

◆ getCamInfo()

const ActorCameraInfo * BreakableCage::getCamInfo ( ) const
inline

Definition at line 32 of file BreakableCage.hpp.

◆ initMapToolInfo()

void BreakableCage::initMapToolInfo ( const JMapInfoIter & rIter)

Definition at line 199 of file BreakableCage.cpp.

◆ initModel()

void BreakableCage::initModel ( const char * pName,
const JMapInfoIter & rIter )

Definition at line 221 of file BreakableCage.cpp.

◆ initBaseMtxForCage()

void BreakableCage::initBaseMtxForCage ( )

Definition at line 246 of file BreakableCage.cpp.

◆ isTypeCage()

bool BreakableCage::isTypeCage ( ) const

Definition at line 261 of file BreakableCage.cpp.

◆ isAppearPowerStar()

bool BreakableCage::isAppearPowerStar ( ) const

Definition at line 282 of file BreakableCage.cpp.

◆ tryBreak()

bool BreakableCage::tryBreak ( )

Definition at line 291 of file BreakableCage.cpp.

◆ exeWait()

void BreakableCage::exeWait ( )

Definition at line 306 of file BreakableCage.cpp.

◆ exeBreak()

void BreakableCage::exeBreak ( )

Definition at line 319 of file BreakableCage.cpp.

Member Data Documentation

◆ mMtx

TPos3f BreakableCage::mMtx

Definition at line 45 of file BreakableCage.hpp.

◆ mBreakModel

ModelObj* BreakableCage::mBreakModel

Definition at line 46 of file BreakableCage.hpp.

◆ mCageType

CageType BreakableCage::mCageType

Definition at line 47 of file BreakableCage.hpp.

◆ mRotationSpeed

f32 BreakableCage::mRotationSpeed

Definition at line 48 of file BreakableCage.hpp.

◆ mItemModel

DummyDisplayModel* BreakableCage::mItemModel

Definition at line 49 of file BreakableCage.hpp.

◆ mIgnoreGravity

bool BreakableCage::mIgnoreGravity

Definition at line 50 of file BreakableCage.hpp.

◆ mDelayDeadActivate

bool BreakableCage::mDelayDeadActivate

Definition at line 51 of file BreakableCage.hpp.

◆ mCameraInfo

const ActorCameraInfo* BreakableCage::mCameraInfo

Definition at line 52 of file BreakableCage.hpp.