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

Public Member Functions

 BlackHole (const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void makeActorAppeared ()
 
virtual void kill ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
bool tryStartDemoCamera ()
 
void initMapToolInfo (const JMapInfoIter &)
 
void initModel ()
 
void initCubeBox ()
 
bool isInCubeBox (const TVec3f &) const
 
void updateModelScale (f32, f32)
 
void exeWait ()
 
void exeDisappear ()
 
- 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 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 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 *)
 
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

ModelObjmBlackHoleModel
 
TVec3f _90
 
f32 _9C
 
f32 _A0
 
TBox3f * _A4
 
TMtx34f _A8
 
TMtx34f _D8
 
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 7 of file BlackHole.hpp.

Constructor & Destructor Documentation

◆ ~BlackHole()

BlackHole::~BlackHole ( )
virtual

Definition at line 196 of file BlackHole.cpp.

Member Function Documentation

◆ init()

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

◆ makeActorAppeared()

void BlackHole::makeActorAppeared ( )
virtual

Reimplemented from LiveActor.

Definition at line 51 of file BlackHole.cpp.

◆ kill()

void BlackHole::kill ( )
virtual

Reimplemented from LiveActor.

Definition at line 63 of file BlackHole.cpp.

◆ calcAndSetBaseMtx()

virtual void BlackHole::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

◆ attackSensor()

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

Reimplemented from LiveActor.

Definition at line 77 of file BlackHole.cpp.

◆ tryStartDemoCamera()

bool BlackHole::tryStartDemoCamera ( )

Definition at line 68 of file BlackHole.cpp.

◆ initModel()

void BlackHole::initModel ( )

Definition at line 125 of file BlackHole.cpp.

◆ isInCubeBox()

bool BlackHole::isInCubeBox ( const TVec3f & rVec) const

Definition at line 146 of file BlackHole.cpp.

◆ updateModelScale()

void BlackHole::updateModelScale ( f32 a1,
f32 a2 )

Definition at line 158 of file BlackHole.cpp.

◆ exeWait()

void BlackHole::exeWait ( )

Definition at line 163 of file BlackHole.cpp.

◆ exeDisappear()

void BlackHole::exeDisappear ( )

Definition at line 181 of file BlackHole.cpp.

Member Data Documentation

◆ mBlackHoleModel

ModelObj* BlackHole::mBlackHoleModel

Definition at line 27 of file BlackHole.hpp.

◆ _90

TVec3f BlackHole::_90

Definition at line 28 of file BlackHole.hpp.

◆ _9C

f32 BlackHole::_9C

Definition at line 29 of file BlackHole.hpp.

◆ _A0

f32 BlackHole::_A0

Definition at line 30 of file BlackHole.hpp.

◆ _A4

TBox3f* BlackHole::_A4

Definition at line 31 of file BlackHole.hpp.

◆ _A8

TMtx34f BlackHole::_A8

Definition at line 32 of file BlackHole.hpp.

◆ _D8

TMtx34f BlackHole::_D8

Definition at line 33 of file BlackHole.hpp.

◆ mCameraInfo

ActorCameraInfo* BlackHole::mCameraInfo

Definition at line 34 of file BlackHole.hpp.