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

Public Member Functions

 PunchingKinoko (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 makeActorDead ()
 
virtual void control ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPush (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *)
 
void initShadow ()
 
void initSensor ()
 
void initCamera (const JMapInfoIter &)
 
void initJointControl ()
 
void initNerve (const Nerve *)
 
bool requestPunch (HitSensor *, HitSensor *)
 
bool requestEnemyBlow (HitSensor *, HitSensor *)
 
bool requestTrample (HitSensor *, HitSensor *)
 
bool requestCrush ()
 
void exeWait ()
 
void exeSwing ()
 
void exePointSnaped ()
 
void exePunched ()
 
void exePunchedBrake ()
 
void exeHitted ()
 
void exeCrushed ()
 
void exeCrushedEnd ()
 
bool ballMtxCallBack (TPos3f *, const JointControllerInfo &)
 
bool isEnablePunched () const
 
bool isEnableHitPlayer () const NO_INLINE
 
bool isEnableEnemyAttack () const
 
bool isEnableCrushed () const
 
bool isEnableTrample () const
 
bool isEnableBlowed () const NO_INLINE
 
bool isCrushed () const NO_INLINE
 
void addVelocityKeepHeight ()
 
- 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 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 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 ()
 

Private Attributes

GroundCheckermGroundChecker
 
AnimScaleControllermScaleController
 
JointControlDelegator< PunchingKinoko > * mDelegator
 
s32 _98
 
TVec3f _9C
 
TVec3f _A8
 
s32 mStarPointerHitCoolDown
 
bool _B8
 
s32 mInvincibleHitCoolDown
 

Additional Inherited Members

- 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 8 of file PunchingKinoko.hpp.

Constructor & Destructor Documentation

◆ PunchingKinoko()

PunchingKinoko::PunchingKinoko ( const char * pName)

Definition at line 4 of file PunchingKinoko.cpp.

◆ ~PunchingKinoko()

PunchingKinoko::~PunchingKinoko ( )

Definition at line 625 of file PunchingKinoko.cpp.

Member Function Documentation

◆ init()

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

◆ makeActorAppeared()

void PunchingKinoko::makeActorAppeared ( )
virtual

Reimplemented from LiveActor.

Definition at line 94 of file PunchingKinoko.cpp.

◆ kill()

void PunchingKinoko::kill ( )
virtual

Reimplemented from LiveActor.

Definition at line 99 of file PunchingKinoko.cpp.

◆ makeActorDead()

void PunchingKinoko::makeActorDead ( )
virtual

Reimplemented from LiveActor.

Definition at line 103 of file PunchingKinoko.cpp.

◆ control()

void PunchingKinoko::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 108 of file PunchingKinoko.cpp.

◆ calcAndSetBaseMtx()

void PunchingKinoko::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 120 of file PunchingKinoko.cpp.

◆ attackSensor()

void PunchingKinoko::attackSensor ( HitSensor * pMySensor,
HitSensor * pOtherSensor )
virtual

Reimplemented from LiveActor.

Definition at line 129 of file PunchingKinoko.cpp.

◆ receiveMsgPush()

bool PunchingKinoko::receiveMsgPush ( HitSensor * pOtherSensor,
HitSensor * pMySensor )
virtual

Reimplemented from LiveActor.

Definition at line 264 of file PunchingKinoko.cpp.

◆ receiveMsgPlayerAttack()

bool PunchingKinoko::receiveMsgPlayerAttack ( u32 a1,
HitSensor * pOtherSensor,
HitSensor * pMySensor )
virtual

Reimplemented from LiveActor.

Definition at line 195 of file PunchingKinoko.cpp.

◆ receiveMsgEnemyAttack()

bool PunchingKinoko::receiveMsgEnemyAttack ( u32 a1,
HitSensor * pOtherSensor,
HitSensor * pMySensor )
virtual

Reimplemented from LiveActor.

Definition at line 244 of file PunchingKinoko.cpp.

◆ initShadow()

void PunchingKinoko::initShadow ( )

Definition at line 51 of file PunchingKinoko.cpp.

◆ initSensor()

void PunchingKinoko::initSensor ( )

Definition at line 45 of file PunchingKinoko.cpp.

◆ initCamera()

void PunchingKinoko::initCamera ( const JMapInfoIter & rIter)

Definition at line 61 of file PunchingKinoko.cpp.

◆ initJointControl()

void PunchingKinoko::initJointControl ( )

Definition at line 68 of file PunchingKinoko.cpp.

◆ requestPunch()

bool PunchingKinoko::requestPunch ( HitSensor * pOtherSensor,
HitSensor * pMySensor )

Definition at line 293 of file PunchingKinoko.cpp.

◆ requestEnemyBlow()

bool PunchingKinoko::requestEnemyBlow ( HitSensor * pOtherSensor,
HitSensor * pMySensor )

Definition at line 321 of file PunchingKinoko.cpp.

◆ requestTrample()

bool PunchingKinoko::requestTrample ( HitSensor * pOtherSensor,
HitSensor * pMySensor )

Definition at line 338 of file PunchingKinoko.cpp.

◆ requestCrush()

bool PunchingKinoko::requestCrush ( )

Definition at line 352 of file PunchingKinoko.cpp.

◆ exeWait()

void PunchingKinoko::exeWait ( )

Definition at line 361 of file PunchingKinoko.cpp.

◆ exeSwing()

void PunchingKinoko::exeSwing ( )

Definition at line 405 of file PunchingKinoko.cpp.

◆ exePointSnaped()

void PunchingKinoko::exePointSnaped ( )

Definition at line 433 of file PunchingKinoko.cpp.

◆ exePunched()

void PunchingKinoko::exePunched ( )

Definition at line 442 of file PunchingKinoko.cpp.

◆ exePunchedBrake()

void PunchingKinoko::exePunchedBrake ( )

Definition at line 455 of file PunchingKinoko.cpp.

◆ exeHitted()

void PunchingKinoko::exeHitted ( )

Definition at line 470 of file PunchingKinoko.cpp.

◆ exeCrushed()

void PunchingKinoko::exeCrushed ( )

Definition at line 481 of file PunchingKinoko.cpp.

◆ exeCrushedEnd()

void PunchingKinoko::exeCrushedEnd ( )

Definition at line 504 of file PunchingKinoko.cpp.

◆ ballMtxCallBack()

bool PunchingKinoko::ballMtxCallBack ( TPos3f * a1,
const JointControllerInfo & joint )

Definition at line 72 of file PunchingKinoko.cpp.

◆ isEnablePunched()

bool PunchingKinoko::isEnablePunched ( ) const

Definition at line 535 of file PunchingKinoko.cpp.

◆ isEnableHitPlayer()

bool PunchingKinoko::isEnableHitPlayer ( ) const

Definition at line 543 of file PunchingKinoko.cpp.

◆ isEnableEnemyAttack()

bool PunchingKinoko::isEnableEnemyAttack ( ) const

Definition at line 547 of file PunchingKinoko.cpp.

◆ isEnableCrushed()

bool PunchingKinoko::isEnableCrushed ( ) const

Definition at line 557 of file PunchingKinoko.cpp.

◆ isEnableTrample()

bool PunchingKinoko::isEnableTrample ( ) const

Definition at line 565 of file PunchingKinoko.cpp.

◆ isEnableBlowed()

bool PunchingKinoko::isEnableBlowed ( ) const

Definition at line 573 of file PunchingKinoko.cpp.

◆ isCrushed()

bool PunchingKinoko::isCrushed ( ) const

Definition at line 577 of file PunchingKinoko.cpp.

◆ addVelocityKeepHeight()

void PunchingKinoko::addVelocityKeepHeight ( )

Definition at line 527 of file PunchingKinoko.cpp.

Member Data Documentation

◆ mGroundChecker

GroundChecker* PunchingKinoko::mGroundChecker
private

Definition at line 58 of file PunchingKinoko.hpp.

◆ mScaleController

AnimScaleController* PunchingKinoko::mScaleController
private

Definition at line 59 of file PunchingKinoko.hpp.

◆ mDelegator

JointControlDelegator<PunchingKinoko>* PunchingKinoko::mDelegator
private

Definition at line 60 of file PunchingKinoko.hpp.

◆ _98

s32 PunchingKinoko::_98
private

Definition at line 61 of file PunchingKinoko.hpp.

◆ _9C

TVec3f PunchingKinoko::_9C
private

Definition at line 62 of file PunchingKinoko.hpp.

◆ _A8

TVec3f PunchingKinoko::_A8
private

Definition at line 63 of file PunchingKinoko.hpp.

◆ mStarPointerHitCoolDown

s32 PunchingKinoko::mStarPointerHitCoolDown
private

Definition at line 64 of file PunchingKinoko.hpp.

◆ _B8

bool PunchingKinoko::_B8
private

Definition at line 65 of file PunchingKinoko.hpp.

◆ mInvincibleHitCoolDown

s32 PunchingKinoko::mInvincibleHitCoolDown
private

Definition at line 66 of file PunchingKinoko.hpp.