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

Public Member Functions

 Poihana (const char *pName)
 
virtual void init (const JMapInfoIter &rIter)
 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 *pSender, HitSensor *pReceiver)
 
virtual bool receiveMsgPush (HitSensor *pSender, HitSensor *pReceiver)
 
virtual bool receiveMsgPlayerAttack (u32 msg, HitSensor *pSender, HitSensor *pReceiver)
 
virtual bool receiveMsgEnemyAttack (u32 msg, HitSensor *pSender, HitSensor *pReceiver)
 
virtual bool receiveOtherMsg (u32 msg, HitSensor *pSender, HitSensor *pReceiver)
 
void exeNonActive ()
 
void endNonActive ()
 
void exeWait ()
 
void exeWalkAround ()
 
void exeSleepStart ()
 
void exeSleep ()
 
void exeGetUp ()
 
void exeSearch ()
 
void exeChasePlayer ()
 
void exeShootUpCharge ()
 
void exeShootUp ()
 
void endShootUp () NO_INLINE
 
void exeGoBack ()
 
void exeShock ()
 
void exeSwoonLand ()
 
void exeSwoon ()
 
void exeRecover ()
 
void exeShake ()
 
void exeDrown ()
 
void exeHide ()
 
void exeAppear ()
 
void exeDPDSwoon ()
 
void endDPDSwoon () NO_INLINE
 
bool tryToStartBind (HitSensor *pSender)
 
void updateBindActorMtx ()
 
void endBind ()
 
void startBound () NO_INLINE
 
void calcBound ()
 
void contactMario (HitSensor *pSender, HitSensor *pReceiver)
 
void controlVelocity ()
 
void calcMyGravity ()
 
bool tryNonActive ()
 
bool tryDrown ()
 
bool tryDPDSwoon ()
 
bool tryShock ()
 
bool tryHipDropShock ()
 
bool isNerveTypeWalkOrWait () const
 
bool isNeedForBackHome () const
 
bool isNeedForGetUp () const
 
bool isBackAttack (HitSensor *pMySensor) const NO_INLINE
 
- 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 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

AnimScaleControllermAnimScaleCtrl
 
WalkerStateBindStarPointermBindStarPointer
 
ActorCameraInfomCamInfo
 
LiveActormBindedActor
 
f32 mLaunchIntensity
 
TVec3f mRespawnPos
 
f32 _AC
 
f32 _B0
 
TVec3f mHomePos
 
f32 _C0
 
s32 mBoundTimer
 
s32 mRandDir
 
s32 mBehavior
 
bool mCanDrown
 
ModelObjmWaterColumn
 
TVec3f mFrontVec
 
bool mIsActive
 
u8 _E5
 
- 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 14 of file Poihana.hpp.

Constructor & Destructor Documentation

◆ Poihana()

Poihana::Poihana ( const char * pName)

Definition at line 10 of file Poihana.cpp.

Member Function Documentation

◆ init()

virtual void Poihana::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.

◆ initAfterPlacement()

void Poihana::initAfterPlacement ( )
virtual

Reimplemented from NameObj.

Definition at line 110 of file Poihana.cpp.

◆ control()

void Poihana::control ( )
virtual

Reimplemented from LiveActor.

Definition at line 120 of file Poihana.cpp.

◆ calcAndSetBaseMtx()

void Poihana::calcAndSetBaseMtx ( )
virtual

Calculates and sets the base matrix of the actor.

Reimplemented from LiveActor.

Definition at line 133 of file Poihana.cpp.

◆ attackSensor()

void Poihana::attackSensor ( HitSensor * pSender,
HitSensor * pReceiver )
virtual

Reimplemented from LiveActor.

Definition at line 153 of file Poihana.cpp.

◆ receiveMsgPush()

bool Poihana::receiveMsgPush ( HitSensor * pSender,
HitSensor * pReceiver )
virtual

Reimplemented from LiveActor.

Definition at line 196 of file Poihana.cpp.

◆ receiveMsgPlayerAttack()

bool Poihana::receiveMsgPlayerAttack ( u32 msg,
HitSensor * pSender,
HitSensor * pReceiver )
virtual

Reimplemented from LiveActor.

Definition at line 208 of file Poihana.cpp.

◆ receiveMsgEnemyAttack()

bool Poihana::receiveMsgEnemyAttack ( u32 msg,
HitSensor * pSender,
HitSensor * pReceiver )
virtual

Reimplemented from LiveActor.

Definition at line 259 of file Poihana.cpp.

◆ receiveOtherMsg()

virtual bool Poihana::receiveOtherMsg ( u32 msg,
HitSensor * pSender,
HitSensor * pReceiver )
virtual

Reimplemented from LiveActor.

◆ exeNonActive()

void Poihana::exeNonActive ( )

Definition at line 301 of file Poihana.cpp.

◆ endNonActive()

void Poihana::endNonActive ( )

Definition at line 323 of file Poihana.cpp.

◆ exeWait()

void Poihana::exeWait ( )

Definition at line 336 of file Poihana.cpp.

◆ exeWalkAround()

void Poihana::exeWalkAround ( )

Definition at line 355 of file Poihana.cpp.

◆ exeSleepStart()

void Poihana::exeSleepStart ( )

Definition at line 385 of file Poihana.cpp.

◆ exeSleep()

void Poihana::exeSleep ( )

Definition at line 397 of file Poihana.cpp.

◆ exeGetUp()

void Poihana::exeGetUp ( )

Definition at line 411 of file Poihana.cpp.

◆ exeSearch()

void Poihana::exeSearch ( )

Definition at line 426 of file Poihana.cpp.

◆ exeChasePlayer()

void Poihana::exeChasePlayer ( )

Definition at line 439 of file Poihana.cpp.

◆ exeShootUpCharge()

void Poihana::exeShootUpCharge ( )

Definition at line 455 of file Poihana.cpp.

◆ endShootUp()

void Poihana::endShootUp ( )

Definition at line 501 of file Poihana.cpp.

◆ exeGoBack()

void Poihana::exeGoBack ( )

Definition at line 511 of file Poihana.cpp.

◆ exeShock()

void Poihana::exeShock ( )

Definition at line 527 of file Poihana.cpp.

◆ exeSwoonLand()

void Poihana::exeSwoonLand ( )

Definition at line 539 of file Poihana.cpp.

◆ exeSwoon()

void Poihana::exeSwoon ( )

Definition at line 550 of file Poihana.cpp.

◆ exeRecover()

void Poihana::exeRecover ( )

Definition at line 562 of file Poihana.cpp.

◆ exeShake()

void Poihana::exeShake ( )

Definition at line 579 of file Poihana.cpp.

◆ exeDrown()

void Poihana::exeDrown ( )

Definition at line 590 of file Poihana.cpp.

◆ exeHide()

void Poihana::exeHide ( )

Definition at line 606 of file Poihana.cpp.

◆ exeAppear()

void Poihana::exeAppear ( )

Definition at line 618 of file Poihana.cpp.

◆ exeDPDSwoon()

void Poihana::exeDPDSwoon ( )

Definition at line 643 of file Poihana.cpp.

◆ endDPDSwoon()

void Poihana::endDPDSwoon ( )

Definition at line 652 of file Poihana.cpp.

◆ tryToStartBind()

bool Poihana::tryToStartBind ( HitSensor * pSender)

Definition at line 660 of file Poihana.cpp.

◆ updateBindActorMtx()

void Poihana::updateBindActorMtx ( )

Definition at line 677 of file Poihana.cpp.

◆ endBind()

void Poihana::endBind ( )

Definition at line 683 of file Poihana.cpp.

◆ startBound()

void Poihana::startBound ( )

Definition at line 696 of file Poihana.cpp.

◆ contactMario()

void Poihana::contactMario ( HitSensor * pSender,
HitSensor * pReceiver )

Definition at line 723 of file Poihana.cpp.

◆ calcMyGravity()

void Poihana::calcMyGravity ( )

Definition at line 806 of file Poihana.cpp.

◆ tryNonActive()

bool Poihana::tryNonActive ( )

Definition at line 817 of file Poihana.cpp.

◆ tryDrown()

bool Poihana::tryDrown ( )

Definition at line 829 of file Poihana.cpp.

◆ tryDPDSwoon()

bool Poihana::tryDPDSwoon ( )

Definition at line 850 of file Poihana.cpp.

◆ tryShock()

bool Poihana::tryShock ( )

Definition at line 863 of file Poihana.cpp.

◆ tryHipDropShock()

bool Poihana::tryHipDropShock ( )

Definition at line 889 of file Poihana.cpp.

◆ isNerveTypeWalkOrWait()

bool Poihana::isNerveTypeWalkOrWait ( ) const

Definition at line 903 of file Poihana.cpp.

◆ isNeedForBackHome()

bool Poihana::isNeedForBackHome ( ) const

Definition at line 911 of file Poihana.cpp.

◆ isNeedForGetUp()

bool Poihana::isNeedForGetUp ( ) const

Definition at line 933 of file Poihana.cpp.

◆ isBackAttack()

bool Poihana::isBackAttack ( HitSensor * pMySensor) const

Definition at line 953 of file Poihana.cpp.

Member Data Documentation

◆ mAnimScaleCtrl

AnimScaleController* Poihana::mAnimScaleCtrl

Definition at line 70 of file Poihana.hpp.

◆ mBindStarPointer

WalkerStateBindStarPointer* Poihana::mBindStarPointer

Definition at line 71 of file Poihana.hpp.

◆ mCamInfo

ActorCameraInfo* Poihana::mCamInfo

Definition at line 72 of file Poihana.hpp.

◆ mBindedActor

LiveActor* Poihana::mBindedActor

Definition at line 73 of file Poihana.hpp.

◆ mLaunchIntensity

f32 Poihana::mLaunchIntensity

Definition at line 74 of file Poihana.hpp.

◆ mRespawnPos

TVec3f Poihana::mRespawnPos

Definition at line 75 of file Poihana.hpp.

◆ _AC

f32 Poihana::_AC

Definition at line 76 of file Poihana.hpp.

◆ _B0

f32 Poihana::_B0

Definition at line 77 of file Poihana.hpp.

◆ mHomePos

TVec3f Poihana::mHomePos

Definition at line 78 of file Poihana.hpp.

◆ _C0

f32 Poihana::_C0

Definition at line 79 of file Poihana.hpp.

◆ mBoundTimer

s32 Poihana::mBoundTimer

Definition at line 80 of file Poihana.hpp.

◆ mRandDir

s32 Poihana::mRandDir

Definition at line 81 of file Poihana.hpp.

◆ mBehavior

s32 Poihana::mBehavior

Definition at line 82 of file Poihana.hpp.

◆ mCanDrown

bool Poihana::mCanDrown

Definition at line 83 of file Poihana.hpp.

◆ mWaterColumn

ModelObj* Poihana::mWaterColumn

Definition at line 84 of file Poihana.hpp.

◆ mFrontVec

TVec3f Poihana::mFrontVec

Definition at line 85 of file Poihana.hpp.

◆ mIsActive

bool Poihana::mIsActive

Definition at line 86 of file Poihana.hpp.

◆ _E5

u8 Poihana::_E5

Definition at line 87 of file Poihana.hpp.