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

Public Member Functions

 ChipBase (const char *, s32, const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void makeActorAppeared ()
 
virtual void makeActorDead ()
 
virtual void control ()
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
void initModel (const JMapInfoIter &)
 
void initSensor ()
 
void initShadow (const JMapInfoIter &)
 
void initJMapParam (const JMapInfoIter &)
 
void deactive ()
 
void setGroupID (s32)
 
void setHost (LiveActor *)
 
void appearWait ()
 
void appearFlashing (s32)
 
bool requestGet (HitSensor *, HitSensor *)
 
bool requestShow ()
 
bool requestHide ()
 
bool requestStartControl ()
 
bool requestEndControl ()
 
void exeFlashing ()
 
void exeGot ()
 
bool isGettable () const
 
- 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 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 calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
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

FlashingCtrlmFlashingCtrl
 
MapPartsRailMovermRailMover
 
PartsModelmAirBubble
 
const char * mChipName
 
LiveActormHost
 
TVec3f mClippingRange
 
s32 mGroupID
 
s32 mChipType
 
bool _B4
 
bool _B5
 
- 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 9 of file ChipBase.hpp.

Constructor & Destructor Documentation

◆ ChipBase()

ChipBase::ChipBase ( const char * pName,
s32 chipType,
const char * pChipName )

Definition at line 4 of file ChipBase.cpp.

◆ ~ChipBase()

virtual ChipBase::~ChipBase ( )
inlinevirtual

Definition at line 13 of file ChipBase.hpp.

Member Function Documentation

◆ init()

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

◆ initAfterPlacement()

void ChipBase::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 122 of file ChipBase.cpp.

◆ makeActorAppeared()

void ChipBase::makeActorAppeared ( )
virtual

Reimplemented from LiveActor.

Definition at line 140 of file ChipBase.cpp.

◆ makeActorDead()

void ChipBase::makeActorDead ( )
virtual

Reimplemented from LiveActor.

Definition at line 149 of file ChipBase.cpp.

◆ control()

void ChipBase::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 157 of file ChipBase.cpp.

◆ receiveOtherMsg()

virtual bool ChipBase::receiveOtherMsg ( u32 ,
HitSensor * ,
HitSensor *  )
virtual

Reimplemented from LiveActor.

◆ initModel()

void ChipBase::initModel ( const JMapInfoIter & rIter)

Definition at line 43 of file ChipBase.cpp.

◆ initSensor()

void ChipBase::initSensor ( )

Definition at line 55 of file ChipBase.cpp.

◆ initJMapParam()

void ChipBase::initJMapParam ( const JMapInfoIter & rIter)

Definition at line 109 of file ChipBase.cpp.

◆ deactive()

void ChipBase::deactive ( )

Definition at line 127 of file ChipBase.cpp.

◆ setGroupID()

void ChipBase::setGroupID ( s32 id)

Definition at line 132 of file ChipBase.cpp.

◆ setHost()

void ChipBase::setHost ( LiveActor * pActor)

Definition at line 136 of file ChipBase.cpp.

◆ appearWait()

void ChipBase::appearWait ( )

Definition at line 167 of file ChipBase.cpp.

◆ appearFlashing()

void ChipBase::appearFlashing ( s32 a1)

Definition at line 175 of file ChipBase.cpp.

◆ requestGet()

bool ChipBase::requestGet ( HitSensor * a1,
HitSensor * a2 )

Definition at line 184 of file ChipBase.cpp.

◆ requestShow()

bool ChipBase::requestShow ( )

Definition at line 199 of file ChipBase.cpp.

◆ requestHide()

bool ChipBase::requestHide ( )

Definition at line 210 of file ChipBase.cpp.

◆ requestStartControl()

bool ChipBase::requestStartControl ( )

Definition at line 223 of file ChipBase.cpp.

◆ requestEndControl()

bool ChipBase::requestEndControl ( )

Definition at line 232 of file ChipBase.cpp.

◆ exeFlashing()

void ChipBase::exeFlashing ( )

Definition at line 241 of file ChipBase.cpp.

◆ isGettable()

bool ChipBase::isGettable ( ) const

Definition at line 280 of file ChipBase.cpp.

◆ isNeedBubble()

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

Definition at line 300 of file ChipBase.cpp.

◆ makeArchiveList()

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

Definition at line 310 of file ChipBase.cpp.

Member Data Documentation

◆ mFlashingCtrl

FlashingCtrl* ChipBase::mFlashingCtrl

Definition at line 44 of file ChipBase.hpp.

◆ mRailMover

MapPartsRailMover* ChipBase::mRailMover

Definition at line 45 of file ChipBase.hpp.

◆ mAirBubble

PartsModel* ChipBase::mAirBubble

Definition at line 46 of file ChipBase.hpp.

◆ mChipName

const char* ChipBase::mChipName

Definition at line 47 of file ChipBase.hpp.

◆ mHost

LiveActor* ChipBase::mHost

Definition at line 48 of file ChipBase.hpp.

◆ mClippingRange

TVec3f ChipBase::mClippingRange

Definition at line 49 of file ChipBase.hpp.

◆ mGroupID

s32 ChipBase::mGroupID

Definition at line 50 of file ChipBase.hpp.

◆ mChipType

s32 ChipBase::mChipType

Definition at line 51 of file ChipBase.hpp.

◆ _B4

bool ChipBase::_B4

Definition at line 52 of file ChipBase.hpp.

◆ _B5

bool ChipBase::_B5

Definition at line 53 of file ChipBase.hpp.