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
Coin Class Reference
Inheritance diagram for Coin:
LiveActor NameObj

Public Member Functions

 Coin (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 makeActorDead ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
void initShadow (const JMapInfoIter &)
 
void setShadowAndPoseModeFromJMapIter (const JMapInfoIter &)
 
void exeNonActive ()
 
void exeFix ()
 
void exeFixTimer ()
 
void exeMove ()
 
void exeControled ()
 
void exeSpinDrained ()
 
void exeHop ()
 
void appearFixInit ()
 
void appearFix ()
 
void appearControlPose ()
 
void appearNonActive ()
 
void appearFixTimer (s32, s32)
 
void appearMove (const TVec3f &, const TVec3f &, s32, s32)
 
void appearHop (const TVec3f &, const TVec3f &)
 
bool requestActive ()
 
bool requestActiveWithGravity ()
 
bool requestDeactive ()
 
bool requestStartControl ()
 
bool requestEndControl ()
 
bool requestSpinDrain ()
 
bool requestShow ()
 
bool requestHide ()
 
void noticeGetCoin ()
 
void setLife (s32)
 
void setHostInfo (CoinHostInfo *)
 
void setCalcShadowMode ()
 
void setCannotTime (s32)
 
void calcRebouond ()
 
void attenuateVelocity ()
 
- 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 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 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 ()
 

Static Public Member Functions

static bool isNeedBubble (const JMapInfoIter &)
 
static void makeArchiveList (NameObjArchiveListCollector *, const JMapInfoIter &)
 

Public Attributes

CoinHostInfomHostInfo
 
FlashingCtrlmFlashCtrl
 
PartsModelmAirBubble
 
TVec3f mDropPosition
 
TVec3f mClippingRange
 
int _B0
 
s32 mCannotTime
 
bool mIsInWater
 
bool _B9
 
bool _BA
 
bool _BB
 
bool mIsPurpleCoin
 
bool mIsNeedBubble
 
- 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 23 of file Coin.hpp.

Constructor & Destructor Documentation

◆ Coin()

Coin::Coin ( const char * pName)

Definition at line 8 of file Coin.cpp.

◆ ~Coin()

Coin::~Coin ( )
virtual

Definition at line 739 of file Coin.cpp.

Member Function Documentation

◆ init()

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

◆ initAfterPlacement()

void Coin::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 84 of file Coin.cpp.

◆ appear()

void Coin::appear ( )
virtual

Reimplemented from LiveActor.

Definition at line 332 of file Coin.cpp.

◆ makeActorAppeared()

void Coin::makeActorAppeared ( )
virtual

Reimplemented from LiveActor.

Definition at line 126 of file Coin.cpp.

◆ makeActorDead()

void Coin::makeActorDead ( )
virtual

Reimplemented from LiveActor.

Definition at line 159 of file Coin.cpp.

◆ calcAndSetBaseMtx()

void Coin::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 166 of file Coin.cpp.

◆ receiveOtherMsg()

bool Coin::receiveOtherMsg ( u32 msg,
HitSensor * ,
HitSensor *  )
virtual

Reimplemented from LiveActor.

Definition at line 195 of file Coin.cpp.

◆ initShadow()

void Coin::initShadow ( const JMapInfoIter & rIter)

Definition at line 88 of file Coin.cpp.

◆ setShadowAndPoseModeFromJMapIter()

void Coin::setShadowAndPoseModeFromJMapIter ( const JMapInfoIter & rIter)

Definition at line 116 of file Coin.cpp.

◆ exeNonActive()

void Coin::exeNonActive ( )

Definition at line 231 of file Coin.cpp.

◆ exeFix()

void Coin::exeFix ( )

Definition at line 237 of file Coin.cpp.

◆ exeFixTimer()

void Coin::exeFixTimer ( )

Definition at line 243 of file Coin.cpp.

◆ exeMove()

void Coin::exeMove ( )

Definition at line 259 of file Coin.cpp.

◆ exeControled()

void Coin::exeControled ( )

Definition at line 300 of file Coin.cpp.

◆ exeSpinDrained()

void Coin::exeSpinDrained ( )

Definition at line 309 of file Coin.cpp.

◆ exeHop()

void Coin::exeHop ( )

Definition at line 318 of file Coin.cpp.

◆ appearFixInit()

void Coin::appearFixInit ( )

Definition at line 336 of file Coin.cpp.

◆ appearFix()

void Coin::appearFix ( )

Definition at line 345 of file Coin.cpp.

◆ appearControlPose()

void Coin::appearControlPose ( )

Definition at line 354 of file Coin.cpp.

◆ appearNonActive()

void Coin::appearNonActive ( )

Definition at line 364 of file Coin.cpp.

◆ appearFixTimer()

void Coin::appearFixTimer ( s32 a1,
s32 a2 )

Definition at line 373 of file Coin.cpp.

◆ appearMove()

void Coin::appearMove ( const TVec3f & a1,
const TVec3f & a2,
s32 a3,
s32 a4 )

Definition at line 383 of file Coin.cpp.

◆ appearHop()

void Coin::appearHop ( const TVec3f & a1,
const TVec3f & a2 )

Definition at line 408 of file Coin.cpp.

◆ requestActive()

bool Coin::requestActive ( )

Definition at line 429 of file Coin.cpp.

◆ requestActiveWithGravity()

bool Coin::requestActiveWithGravity ( )

Definition at line 439 of file Coin.cpp.

◆ requestDeactive()

bool Coin::requestDeactive ( )

Definition at line 453 of file Coin.cpp.

◆ requestStartControl()

bool Coin::requestStartControl ( )

Definition at line 463 of file Coin.cpp.

◆ requestEndControl()

bool Coin::requestEndControl ( )

Definition at line 485 of file Coin.cpp.

◆ requestSpinDrain()

bool Coin::requestSpinDrain ( )

Definition at line 500 of file Coin.cpp.

◆ requestShow()

bool Coin::requestShow ( )

Definition at line 517 of file Coin.cpp.

◆ requestHide()

bool Coin::requestHide ( )

Definition at line 527 of file Coin.cpp.

◆ noticeGetCoin()

void Coin::noticeGetCoin ( )

Definition at line 537 of file Coin.cpp.

◆ setLife()

void Coin::setLife ( s32 life)

Definition at line 556 of file Coin.cpp.

◆ setHostInfo()

void Coin::setHostInfo ( CoinHostInfo * pInfo)

Definition at line 565 of file Coin.cpp.

◆ setCalcShadowMode()

void Coin::setCalcShadowMode ( )

Definition at line 569 of file Coin.cpp.

◆ setCannotTime()

void Coin::setCannotTime ( s32 time)

Definition at line 580 of file Coin.cpp.

◆ calcRebouond()

void Coin::calcRebouond ( )

Definition at line 589 of file Coin.cpp.

◆ attenuateVelocity()

void Coin::attenuateVelocity ( )

Definition at line 621 of file Coin.cpp.

◆ isNeedBubble()

bool Coin::isNeedBubble ( const JMapInfoIter & rIter)
static

Definition at line 637 of file Coin.cpp.

◆ makeArchiveList()

void Coin::makeArchiveList ( NameObjArchiveListCollector * pList,
const JMapInfoIter & rIter )
static

Definition at line 647 of file Coin.cpp.

Member Data Documentation

◆ mHostInfo

CoinHostInfo* Coin::mHostInfo

Definition at line 70 of file Coin.hpp.

◆ mFlashCtrl

FlashingCtrl* Coin::mFlashCtrl

Definition at line 71 of file Coin.hpp.

◆ mAirBubble

PartsModel* Coin::mAirBubble

Definition at line 72 of file Coin.hpp.

◆ mDropPosition

TVec3f Coin::mDropPosition

Definition at line 73 of file Coin.hpp.

◆ mClippingRange

TVec3f Coin::mClippingRange

Definition at line 74 of file Coin.hpp.

◆ _B0

int Coin::_B0

Definition at line 75 of file Coin.hpp.

◆ mCannotTime

s32 Coin::mCannotTime

Definition at line 76 of file Coin.hpp.

◆ mIsInWater

bool Coin::mIsInWater

Definition at line 77 of file Coin.hpp.

◆ _B9

bool Coin::_B9

Definition at line 78 of file Coin.hpp.

◆ _BA

bool Coin::_BA

Definition at line 79 of file Coin.hpp.

◆ _BB

bool Coin::_BB

Definition at line 80 of file Coin.hpp.

◆ mIsPurpleCoin

bool Coin::mIsPurpleCoin

Definition at line 81 of file Coin.hpp.

◆ mIsNeedBubble

bool Coin::mIsNeedBubble

Definition at line 82 of file Coin.hpp.