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

Public Member Functions

 PowerStar (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 makeActorAppeared ()
 
virtual void control ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
void requestAppear ()
 
void setDemoAppearPos (const TVec3f &)
 
bool isEndAppearDemo () const
 
void offAppearDemo ()
 
void initMapToolInfo (const JMapInfoIter &)
 
void initModel ()
 
void initSensorGrandStar ()
 
void initShadow (const JMapInfoIter &)
 
void initPosture ()
 
void endAppearDemo ()
 
PowerStarAppearPointgetNearestAppearPoint (const TVec3f &) const
 
LiveActorgetAppearCameraActor ()
 
ActorCameraInfogetAppearCameraInfo () const
 
void requestAppearOrWait ()
 
void calcAppearDemoRiseTrans (TVec3f *, f32) const
 
void processWait (f32)
 
void exeAppearDemoRise ()
 
void exeAppearDemoMove ()
 
void exeAppearDemoKoopa ()
 
void exeWait ()
 
void exeWeak ()
 
void exeWeakNoRotate ()
 
void exeWeakToWait ()
 
void exeStageClearDemo ()
 
bool isGrandStar ()
 
- 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 kill ()
 
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 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 ()
 

Static Public Member Functions

static void setupColor (LiveActor *, const NameObj *, s32)
 
static void setupColorAtResultSequence (LiveActor *, bool)
 
static void requestPointLight (const LiveActor *, const NameObj *, s32)
 
static void requestPointLightAtResultSequence (const LiveActor *)
 
static f32 getPowerStarWaitRotateSpeed ()
 
static s32 getBtpFrameCurrentStage (s32)
 
static bool isCurrentStageKoopaVs3 ()
 
static void initShadowPowerStar (LiveActor *, bool)
 
static void makeArchiveList (NameObjArchiveListCollector *, const JMapInfoIter &)
 

Public Attributes

s32 mPowerStarId
 
bool mIsInDemo
 
TVec3f mAppearPosition
 
TVec3f _A0
 
TVec3f _AC
 
TPos3f _B8
 
TMtx34f _E8
 
ModelObjmPowerStarModelObj
 
u8 _11C
 
u8 _11D
 
u8 _11E
 
u8 _11F
 
union { 
 
   volatile s32   mColorFrame_v 
 
   s32   mColorFrame 
 
};  
 
volatile bool mIsGrandStar
 
bool _125
 
bool _126
 
bool _127
 
ActorCameraInfomCameraInfo
 
PowerStarAppearPointmCameraActor
 
ModelObjmLuigiNPC
 
TMtx34f _134
 
u8 _164
 
- 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 15 of file PowerStar.hpp.

Constructor & Destructor Documentation

◆ PowerStar()

PowerStar::PowerStar ( const char * pName)

Definition at line 42 of file PowerStar.cpp.

◆ ~PowerStar()

PowerStar::~PowerStar ( )
virtual

Definition at line 698 of file PowerStar.cpp.

Member Function Documentation

◆ init()

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

◆ initAfterPlacement()

void PowerStar::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 132 of file PowerStar.cpp.

◆ appear()

void PowerStar::appear ( )
virtual

Reimplemented from LiveActor.

Definition at line 136 of file PowerStar.cpp.

◆ makeActorAppeared()

void PowerStar::makeActorAppeared ( )
virtual

Reimplemented from LiveActor.

Definition at line 142 of file PowerStar.cpp.

◆ control()

void PowerStar::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 287 of file PowerStar.cpp.

◆ calcAndSetBaseMtx()

virtual void PowerStar::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

◆ receiveMsgPlayerAttack()

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

Reimplemented from LiveActor.

Definition at line 332 of file PowerStar.cpp.

◆ receiveOtherMsg()

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

Reimplemented from LiveActor.

Definition at line 340 of file PowerStar.cpp.

◆ requestAppear()

void PowerStar::requestAppear ( )

Definition at line 148 of file PowerStar.cpp.

◆ setDemoAppearPos()

void PowerStar::setDemoAppearPos ( const TVec3f & rVec)

Definition at line 163 of file PowerStar.cpp.

◆ isEndAppearDemo()

bool PowerStar::isEndAppearDemo ( ) const

Definition at line 173 of file PowerStar.cpp.

◆ offAppearDemo()

void PowerStar::offAppearDemo ( )

Definition at line 183 of file PowerStar.cpp.

◆ setupColor()

void PowerStar::setupColor ( LiveActor * pActor,
const NameObj * a2,
s32 a3 )
static

Definition at line 187 of file PowerStar.cpp.

◆ setupColorAtResultSequence()

void PowerStar::setupColorAtResultSequence ( LiveActor * pPowerStar,
bool a2 )
static

Definition at line 207 of file PowerStar.cpp.

◆ requestPointLight()

void PowerStar::requestPointLight ( const LiveActor * pActor,
const NameObj * a2,
s32 a3 )
static

Definition at line 227 of file PowerStar.cpp.

◆ requestPointLightAtResultSequence()

void PowerStar::requestPointLightAtResultSequence ( const LiveActor * pActor)
static

Definition at line 243 of file PowerStar.cpp.

◆ getPowerStarWaitRotateSpeed()

f32 PowerStar::getPowerStarWaitRotateSpeed ( )
static

Definition at line 259 of file PowerStar.cpp.

◆ getBtpFrameCurrentStage()

s32 PowerStar::getBtpFrameCurrentStage ( s32 a1)
static

Definition at line 263 of file PowerStar.cpp.

◆ isCurrentStageKoopaVs3()

bool PowerStar::isCurrentStageKoopaVs3 ( )
static

Definition at line 271 of file PowerStar.cpp.

◆ initShadowPowerStar()

void PowerStar::initShadowPowerStar ( LiveActor * pActor,
bool a2 )
static

Definition at line 275 of file PowerStar.cpp.

◆ makeArchiveList()

void PowerStar::makeArchiveList ( NameObjArchiveListCollector * pCollector,
const JMapInfoIter & rIter )
static

Definition at line 281 of file PowerStar.cpp.

◆ initMapToolInfo()

void PowerStar::initMapToolInfo ( const JMapInfoIter & rIter)

Definition at line 364 of file PowerStar.cpp.

◆ initModel()

void PowerStar::initModel ( )

Definition at line 393 of file PowerStar.cpp.

◆ initSensorGrandStar()

void PowerStar::initSensorGrandStar ( )

Definition at line 429 of file PowerStar.cpp.

◆ initShadow()

void PowerStar::initShadow ( const JMapInfoIter & rIter)

Definition at line 451 of file PowerStar.cpp.

◆ initPosture()

void PowerStar::initPosture ( )

Definition at line 465 of file PowerStar.cpp.

◆ endAppearDemo()

void PowerStar::endAppearDemo ( )

Definition at line 495 of file PowerStar.cpp.

◆ getNearestAppearPoint()

PowerStarAppearPoint * PowerStar::getNearestAppearPoint ( const TVec3f & rPos) const

Definition at line 505 of file PowerStar.cpp.

◆ getAppearCameraActor()

LiveActor * PowerStar::getAppearCameraActor ( )

Definition at line 527 of file PowerStar.cpp.

◆ requestAppearOrWait()

void PowerStar::requestAppearOrWait ( )

Definition at line 534 of file PowerStar.cpp.

◆ calcAppearDemoRiseTrans()

void PowerStar::calcAppearDemoRiseTrans ( TVec3f * pOutTrans,
f32 a2 ) const

Definition at line 559 of file PowerStar.cpp.

◆ exeWait()

void PowerStar::exeWait ( )

Definition at line 647 of file PowerStar.cpp.

◆ exeWeak()

void PowerStar::exeWeak ( )

Definition at line 660 of file PowerStar.cpp.

◆ exeWeakNoRotate()

void PowerStar::exeWeakNoRotate ( )

Definition at line 674 of file PowerStar.cpp.

◆ exeWeakToWait()

void PowerStar::exeWeakToWait ( )

Definition at line 683 of file PowerStar.cpp.

◆ isGrandStar()

bool PowerStar::isGrandStar ( )
inline

Definition at line 63 of file PowerStar.hpp.

Member Data Documentation

◆ mPowerStarId

s32 PowerStar::mPowerStarId

Definition at line 67 of file PowerStar.hpp.

◆ mIsInDemo

bool PowerStar::mIsInDemo

Definition at line 68 of file PowerStar.hpp.

◆ mAppearPosition

TVec3f PowerStar::mAppearPosition

Definition at line 69 of file PowerStar.hpp.

◆ _A0

TVec3f PowerStar::_A0

Definition at line 70 of file PowerStar.hpp.

◆ _AC

TVec3f PowerStar::_AC

Definition at line 71 of file PowerStar.hpp.

◆ _B8

TPos3f PowerStar::_B8

Definition at line 72 of file PowerStar.hpp.

◆ _E8

TMtx34f PowerStar::_E8

Definition at line 73 of file PowerStar.hpp.

◆ mPowerStarModelObj

ModelObj* PowerStar::mPowerStarModelObj

Definition at line 74 of file PowerStar.hpp.

◆ _11C

u8 PowerStar::_11C

Definition at line 75 of file PowerStar.hpp.

◆ _11D

u8 PowerStar::_11D

Definition at line 76 of file PowerStar.hpp.

◆ _11E

u8 PowerStar::_11E

Definition at line 77 of file PowerStar.hpp.

◆ _11F

u8 PowerStar::_11F

Definition at line 78 of file PowerStar.hpp.

◆ mColorFrame_v

volatile s32 PowerStar::mColorFrame_v

Definition at line 83 of file PowerStar.hpp.

◆ mColorFrame

s32 PowerStar::mColorFrame

Definition at line 84 of file PowerStar.hpp.

◆ mIsGrandStar

volatile bool PowerStar::mIsGrandStar

Definition at line 87 of file PowerStar.hpp.

◆ _125

bool PowerStar::_125

Definition at line 88 of file PowerStar.hpp.

◆ _126

bool PowerStar::_126

Definition at line 89 of file PowerStar.hpp.

◆ _127

bool PowerStar::_127

Definition at line 90 of file PowerStar.hpp.

◆ mCameraInfo

ActorCameraInfo* PowerStar::mCameraInfo

Definition at line 91 of file PowerStar.hpp.

◆ mCameraActor

PowerStarAppearPoint* PowerStar::mCameraActor

Definition at line 92 of file PowerStar.hpp.

◆ mLuigiNPC

ModelObj* PowerStar::mLuigiNPC

Definition at line 93 of file PowerStar.hpp.

◆ _134

TMtx34f PowerStar::_134

Definition at line 94 of file PowerStar.hpp.

◆ _164

u8 PowerStar::_164

Definition at line 95 of file PowerStar.hpp.