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

Public Member Functions

 PressureBase (const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void control ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
virtual void initBullet (const JMapInfoIter &)
 
virtual bool shotBullet (f32)
 
void exeBound ()
 
void exeWait ()
 
void exePrepareToShot ()
 
void exeShot ()
 
void startWait ()
 
void startRelax ()
 
bool calcJointCannonV (TPos3f *, const JointControllerInfo &)
 
bool isShotTypeOnGravity () const
 
bool isShotTypeFollow () 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 makeActorAppeared ()
 
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 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 ()
 

Public Attributes

JointControlDelegator< PressureBase > * mJointController
 
TVec3f mFront
 
f32 _9C
 
f32 mNozzleRotation
 
s32 mWaitTime
 
f32 mBallSpeed
 
s32 mShotType
 
u8 _B0
 
u8 _B1
 
u8 _B2
 
u8 _B3
 
PressureMessengermMessenger
 
MsgSharedGroupmGroup
 
s8 _BC
 
- 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 20 of file PressureBase.hpp.

Constructor & Destructor Documentation

◆ PressureBase()

PressureBase::PressureBase ( const char * pName)

Definition at line 24 of file PressureBase.cpp.

◆ ~PressureBase()

virtual PressureBase::~PressureBase ( )
inlinevirtual

Definition at line 24 of file PressureBase.hpp.

Member Function Documentation

◆ init()

void PressureBase::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.

Reimplemented in FirePressure.

Definition at line 40 of file PressureBase.cpp.

◆ initAfterPlacement()

virtual void PressureBase::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

◆ control()

void PressureBase::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 124 of file PressureBase.cpp.

◆ calcAndSetBaseMtx()

void PressureBase::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 119 of file PressureBase.cpp.

◆ attackSensor()

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

Reimplemented from LiveActor.

Definition at line 211 of file PressureBase.cpp.

◆ receiveMsgPlayerAttack()

bool PressureBase::receiveMsgPlayerAttack ( u32 msg,
HitSensor * ,
HitSensor *  )
virtual

Reimplemented from LiveActor.

Definition at line 217 of file PressureBase.cpp.

◆ receiveOtherMsg()

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

Reimplemented from LiveActor.

Definition at line 221 of file PressureBase.cpp.

◆ initBullet()

void PressureBase::initBullet ( const JMapInfoIter & )
virtual

Definition at line 258 of file PressureBase.cpp.

◆ shotBullet()

bool PressureBase::shotBullet ( f32 )
virtual

Definition at line 262 of file PressureBase.cpp.

◆ exeBound()

void PressureBase::exeBound ( )

Definition at line 130 of file PressureBase.cpp.

◆ exeWait()

void PressureBase::exeWait ( )

Definition at line 161 of file PressureBase.cpp.

◆ exePrepareToShot()

void PressureBase::exePrepareToShot ( )

Definition at line 170 of file PressureBase.cpp.

◆ exeShot()

void PressureBase::exeShot ( )

Definition at line 180 of file PressureBase.cpp.

◆ startWait()

void PressureBase::startWait ( )

Definition at line 239 of file PressureBase.cpp.

◆ startRelax()

void PressureBase::startRelax ( )

Definition at line 245 of file PressureBase.cpp.

◆ isShotTypeOnGravity()

bool PressureBase::isShotTypeOnGravity ( ) const

Definition at line 268 of file PressureBase.cpp.

◆ isShotTypeFollow()

bool PressureBase::isShotTypeFollow ( ) const

Definition at line 272 of file PressureBase.cpp.

Member Data Documentation

◆ mJointController

JointControlDelegator<PressureBase>* PressureBase::mJointController

Definition at line 48 of file PressureBase.hpp.

◆ mFront

TVec3f PressureBase::mFront

Definition at line 49 of file PressureBase.hpp.

◆ _9C

f32 PressureBase::_9C

Definition at line 50 of file PressureBase.hpp.

◆ mNozzleRotation

f32 PressureBase::mNozzleRotation

Definition at line 51 of file PressureBase.hpp.

◆ mWaitTime

s32 PressureBase::mWaitTime

Definition at line 52 of file PressureBase.hpp.

◆ mBallSpeed

f32 PressureBase::mBallSpeed

Definition at line 53 of file PressureBase.hpp.

◆ mShotType

s32 PressureBase::mShotType

Definition at line 54 of file PressureBase.hpp.

◆ _B0

u8 PressureBase::_B0

Definition at line 55 of file PressureBase.hpp.

◆ _B1

u8 PressureBase::_B1

Definition at line 56 of file PressureBase.hpp.

◆ _B2

u8 PressureBase::_B2

Definition at line 57 of file PressureBase.hpp.

◆ _B3

u8 PressureBase::_B3

Definition at line 58 of file PressureBase.hpp.

◆ mMessenger

PressureMessenger* PressureBase::mMessenger

Definition at line 59 of file PressureBase.hpp.

◆ mGroup

MsgSharedGroup* PressureBase::mGroup

Definition at line 60 of file PressureBase.hpp.

◆ _BC

s8 PressureBase::_BC

Definition at line 61 of file PressureBase.hpp.