New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
PlayerModelBaseMgr Class Reference

#include <PlayerModelBaseMgr.h>

Inherited by PlayerModelMgr.

Public Types

enum  DrawType { cDrawType_Normal = 0 , cDrawType_InBalloon , cDrawType_InDistantView }

Public Member Functions

 PlayerModelBaseMgr ()
virtual void setHeadID (PlayerModelBase::HeadType id)
PlayerModelBase * getModelBase ()
void setModelBase (PlayerModelBase *mdl_base)
void reset ()
f32 getAnmRate (s32 anm_id)
f32 getAnmBlendDuration (s32 anm_id)
void setAnm (s32 anm_id, f32 frame=0.0f)
void setAnm (s32 anm_id, f32 blend_duration, f32 frame)
void setAnm (s32 anm_id, f32 rate, f32 blend_duration, f32 frame)
void setBodyAnm (s32 anm_id)
void setBodyAnm (s32 anm_id, f32 rate, f32 frame=0.0f, f32 blend_duration=0.0f)
void copyLinkAnm (f32 blend_duration)
void setJumpAnmRand (PlayerModelBase::RndType rnd_type)
void setRate (f32 rate)
f32 getRate ()
void setRateDirect (f32 rate)
f32 getRateDirect ()
void setBodyRate (f32 rate)
f32 getBodyRate ()
bool isAnmStop ()
bool isBodyAnmStop ()
void setFrame (f32 frame)
f32 getFrame ()
void setFrameDirect (f32 frame)
f32 getFrameDirect ()
void setBodyFrame (f32 frame)
f32 getBodyFrame ()
bool checkFrame (f32 frame)
bool checkBodyFrame (f32 frame)
bool isAnmLoopFrame ()
bool isBodyAnmLoopFrame ()
f32 getFrameEnd ()
bool isBodyAnmOn ()
void getJointMtx (sead::Matrixf *mtx, s32 index)
void getJointPos (sead::Vector3f *pos, s32 index)
void getJointMtx (sead::Matrixf *mtx, const sead::SafeString &name)
void getJointPos (sead::Vector3f *pos, const sead::SafeString &name)
void play ()
void calc (const sead::Matrixf &mtx)
void calc2 ()
void draw ()
void cancelCarry ()
void onCarry ()
void onLiftUp ()
void onBalloonChibiYoshiFly ()
void onBubbleChibiYoshiShake ()
void offCarry ()
void offLiftUp ()
void offBalloonChibiYoshiFly ()
void offBubbleChibiYoshiShake ()
bool isCarry ()
bool isLiftUp ()
void onStarAnm ()
void offStarAnm ()
bool isFootStepTiming ()
bool isCourseSelectScene ()
f32 getBaseScale ()
sead::Vector3f * getHeadTopPosP ()
sead::Vector3f * getHeadPosP ()
u32 getAnmFlag (PlayerModelBase::AnmFlagType type) const
u32 getAnmFlag () const
u32 getBodyAnmFlag () const
bool isAnmFlag (PlayerModelBase::AnmFlagType type, u32 flag) const
bool isAnmFlagBit (PlayerModelBase::AnmFlagType type, PlayerModelBase::AnmFlagBit bit) const
bool isAnmFlag (u32 flag) const
bool isAnmFlagBit (PlayerModelBase::AnmFlagBit bit) const
bool isSitAnm () const
bool isCarryAnm () const
bool isHangAnm () const
bool isHangCliffAnm () const
bool isSwimAnm () const
bool isJumpAnm () const
bool isDirAnm () const
bool isDirAnmL () const
bool isDirAnmR () const
bool isLuigiPersonalAnm () const
bool isMusaPersonalAnm () const
bool isPenguinPersonalAnm () const
bool isPropellerPersonalAnm () const
bool isBodyAnmFlag (u32 flag) const
bool isBodyAnmFlagBit (PlayerModelBase::AnmFlagBit bit) const
bool isCarryBodyAnm () const
bool isJumpBodyAnm () const
bool isSlopeBodyAnm () const
bool isPenguinPersonalBodyAnm () const
void changeFaceAngleOverrideFlag (PlayerModelBase::FaceAngleOverrideFlag flag, bool enable)
const Angle3 & getFaceAngleOverride () const
void setFaceAngleOverride (const Angle3 &angle)
void resetFaceAngleOverride ()
void resetFaceAngleOverrideFlag ()
void setDrawType (DrawType type)
void setTexAnmType (PlayerModelBase::TexAnmType type)
ModelResource * getModelResFile () const
ModelResource * getAnmResFile () const
s32 getAnmID () const
void onOnHDokan ()
void offOnHDokan ()
bool isOnHDokan () const
void onWaitL ()
void onWaitR ()
void offWait ()
bool isWaitL () const
bool isWaitR () const
void onRideCloudWait ()
void offRideCloudWait ()
bool isRideCloudWait () const
void onRideLiftWait ()
void offRideLiftWait ()
bool isRideLiftWait () const
void releaseBodyAnm (f32 blend_duration)
void setCarryBodyAnm (f32 blend_duration, bool bubble_reset_frame)
bool isBalloonChibiYoshiFly () const
bool isBubbleChibiYoshiShake () const

Protected Attributes

PlayerModelBase * mModelBase
DrawType mDrawType

Member Enumeration Documentation

◆ DrawType

Enumerator
cDrawType_Normal 
cDrawType_InBalloon 
cDrawType_InDistantView 

Constructor & Destructor Documentation

◆ PlayerModelBaseMgr()

PlayerModelBaseMgr::PlayerModelBaseMgr ( )

Member Function Documentation

◆ setHeadID()

virtual void PlayerModelBaseMgr::setHeadID ( PlayerModelBase::HeadType id)
inlinevirtual

Reimplemented in PlayerModelMgr.

◆ getModelBase()

PlayerModelBase * PlayerModelBaseMgr::getModelBase ( )
inline

◆ setModelBase()

void PlayerModelBaseMgr::setModelBase ( PlayerModelBase * mdl_base)

◆ reset()

void PlayerModelBaseMgr::reset ( )
inline

◆ getAnmRate()

f32 PlayerModelBaseMgr::getAnmRate ( s32 anm_id)
inline

◆ getAnmBlendDuration()

f32 PlayerModelBaseMgr::getAnmBlendDuration ( s32 anm_id)
inline

◆ setAnm() [1/3]

void PlayerModelBaseMgr::setAnm ( s32 anm_id,
f32 frame = 0.0f )

◆ setAnm() [2/3]

void PlayerModelBaseMgr::setAnm ( s32 anm_id,
f32 blend_duration,
f32 frame )

◆ setAnm() [3/3]

void PlayerModelBaseMgr::setAnm ( s32 anm_id,
f32 rate,
f32 blend_duration,
f32 frame )
inline

◆ setBodyAnm() [1/2]

void PlayerModelBaseMgr::setBodyAnm ( s32 anm_id)

◆ setBodyAnm() [2/2]

void PlayerModelBaseMgr::setBodyAnm ( s32 anm_id,
f32 rate,
f32 frame = 0.0f,
f32 blend_duration = 0.0f )
inline

◆ copyLinkAnm()

void PlayerModelBaseMgr::copyLinkAnm ( f32 blend_duration)
inline

◆ setJumpAnmRand()

void PlayerModelBaseMgr::setJumpAnmRand ( PlayerModelBase::RndType rnd_type)
inline

◆ setRate()

void PlayerModelBaseMgr::setRate ( f32 rate)
inline

◆ getRate()

f32 PlayerModelBaseMgr::getRate ( )
inline

◆ setRateDirect()

void PlayerModelBaseMgr::setRateDirect ( f32 rate)
inline

◆ getRateDirect()

f32 PlayerModelBaseMgr::getRateDirect ( )
inline

◆ setBodyRate()

void PlayerModelBaseMgr::setBodyRate ( f32 rate)
inline

◆ getBodyRate()

f32 PlayerModelBaseMgr::getBodyRate ( )
inline

◆ isAnmStop()

bool PlayerModelBaseMgr::isAnmStop ( )
inline

◆ isBodyAnmStop()

bool PlayerModelBaseMgr::isBodyAnmStop ( )
inline

◆ setFrame()

void PlayerModelBaseMgr::setFrame ( f32 frame)
inline

◆ getFrame()

f32 PlayerModelBaseMgr::getFrame ( )
inline

◆ setFrameDirect()

void PlayerModelBaseMgr::setFrameDirect ( f32 frame)
inline

◆ getFrameDirect()

f32 PlayerModelBaseMgr::getFrameDirect ( )
inline

◆ setBodyFrame()

void PlayerModelBaseMgr::setBodyFrame ( f32 frame)
inline

◆ getBodyFrame()

f32 PlayerModelBaseMgr::getBodyFrame ( )
inline

◆ checkFrame()

bool PlayerModelBaseMgr::checkFrame ( f32 frame)
inline

◆ checkBodyFrame()

bool PlayerModelBaseMgr::checkBodyFrame ( f32 frame)
inline

◆ isAnmLoopFrame()

bool PlayerModelBaseMgr::isAnmLoopFrame ( )
inline

◆ isBodyAnmLoopFrame()

bool PlayerModelBaseMgr::isBodyAnmLoopFrame ( )
inline

◆ getFrameEnd()

f32 PlayerModelBaseMgr::getFrameEnd ( )
inline

◆ isBodyAnmOn()

bool PlayerModelBaseMgr::isBodyAnmOn ( )
inline

◆ getJointMtx() [1/2]

void PlayerModelBaseMgr::getJointMtx ( sead::Matrixf * mtx,
s32 index )
inline

◆ getJointPos() [1/2]

void PlayerModelBaseMgr::getJointPos ( sead::Vector3f * pos,
s32 index )
inline

◆ getJointMtx() [2/2]

void PlayerModelBaseMgr::getJointMtx ( sead::Matrixf * mtx,
const sead::SafeString & name )
inline

◆ getJointPos() [2/2]

void PlayerModelBaseMgr::getJointPos ( sead::Vector3f * pos,
const sead::SafeString & name )
inline

◆ play()

void PlayerModelBaseMgr::play ( )
inline

◆ calc()

void PlayerModelBaseMgr::calc ( const sead::Matrixf & mtx)
inline

◆ calc2()

void PlayerModelBaseMgr::calc2 ( )
inline

◆ draw()

void PlayerModelBaseMgr::draw ( )

◆ cancelCarry()

void PlayerModelBaseMgr::cancelCarry ( )
inline

◆ onCarry()

void PlayerModelBaseMgr::onCarry ( )
inline

◆ onLiftUp()

void PlayerModelBaseMgr::onLiftUp ( )
inline

◆ onBalloonChibiYoshiFly()

void PlayerModelBaseMgr::onBalloonChibiYoshiFly ( )
inline

◆ onBubbleChibiYoshiShake()

void PlayerModelBaseMgr::onBubbleChibiYoshiShake ( )
inline

◆ offCarry()

void PlayerModelBaseMgr::offCarry ( )
inline

◆ offLiftUp()

void PlayerModelBaseMgr::offLiftUp ( )
inline

◆ offBalloonChibiYoshiFly()

void PlayerModelBaseMgr::offBalloonChibiYoshiFly ( )
inline

◆ offBubbleChibiYoshiShake()

void PlayerModelBaseMgr::offBubbleChibiYoshiShake ( )
inline

◆ isCarry()

bool PlayerModelBaseMgr::isCarry ( )
inline

◆ isLiftUp()

bool PlayerModelBaseMgr::isLiftUp ( )
inline

◆ onStarAnm()

void PlayerModelBaseMgr::onStarAnm ( )
inline

◆ offStarAnm()

void PlayerModelBaseMgr::offStarAnm ( )
inline

◆ isFootStepTiming()

bool PlayerModelBaseMgr::isFootStepTiming ( )
inline

◆ isCourseSelectScene()

bool PlayerModelBaseMgr::isCourseSelectScene ( )
inline

◆ getBaseScale()

f32 PlayerModelBaseMgr::getBaseScale ( )
inline

◆ getHeadTopPosP()

sead::Vector3f * PlayerModelBaseMgr::getHeadTopPosP ( )
inline

◆ getHeadPosP()

sead::Vector3f * PlayerModelBaseMgr::getHeadPosP ( )
inline

◆ getAnmFlag() [1/2]

u32 PlayerModelBaseMgr::getAnmFlag ( PlayerModelBase::AnmFlagType type) const
inline

◆ getAnmFlag() [2/2]

u32 PlayerModelBaseMgr::getAnmFlag ( ) const
inline

◆ getBodyAnmFlag()

u32 PlayerModelBaseMgr::getBodyAnmFlag ( ) const
inline

◆ isAnmFlag() [1/2]

bool PlayerModelBaseMgr::isAnmFlag ( PlayerModelBase::AnmFlagType type,
u32 flag ) const
inline

◆ isAnmFlagBit() [1/2]

bool PlayerModelBaseMgr::isAnmFlagBit ( PlayerModelBase::AnmFlagType type,
PlayerModelBase::AnmFlagBit bit ) const
inline

◆ isAnmFlag() [2/2]

bool PlayerModelBaseMgr::isAnmFlag ( u32 flag) const
inline

◆ isAnmFlagBit() [2/2]

bool PlayerModelBaseMgr::isAnmFlagBit ( PlayerModelBase::AnmFlagBit bit) const
inline

◆ isSitAnm()

bool PlayerModelBaseMgr::isSitAnm ( ) const
inline

◆ isCarryAnm()

bool PlayerModelBaseMgr::isCarryAnm ( ) const
inline

◆ isHangAnm()

bool PlayerModelBaseMgr::isHangAnm ( ) const
inline

◆ isHangCliffAnm()

bool PlayerModelBaseMgr::isHangCliffAnm ( ) const
inline

◆ isSwimAnm()

bool PlayerModelBaseMgr::isSwimAnm ( ) const
inline

◆ isJumpAnm()

bool PlayerModelBaseMgr::isJumpAnm ( ) const
inline

◆ isDirAnm()

bool PlayerModelBaseMgr::isDirAnm ( ) const
inline

◆ isDirAnmL()

bool PlayerModelBaseMgr::isDirAnmL ( ) const
inline

◆ isDirAnmR()

bool PlayerModelBaseMgr::isDirAnmR ( ) const
inline

◆ isLuigiPersonalAnm()

bool PlayerModelBaseMgr::isLuigiPersonalAnm ( ) const
inline

◆ isMusaPersonalAnm()

bool PlayerModelBaseMgr::isMusaPersonalAnm ( ) const
inline

◆ isPenguinPersonalAnm()

bool PlayerModelBaseMgr::isPenguinPersonalAnm ( ) const
inline

◆ isPropellerPersonalAnm()

bool PlayerModelBaseMgr::isPropellerPersonalAnm ( ) const
inline

◆ isBodyAnmFlag()

bool PlayerModelBaseMgr::isBodyAnmFlag ( u32 flag) const
inline

◆ isBodyAnmFlagBit()

bool PlayerModelBaseMgr::isBodyAnmFlagBit ( PlayerModelBase::AnmFlagBit bit) const
inline

◆ isCarryBodyAnm()

bool PlayerModelBaseMgr::isCarryBodyAnm ( ) const
inline

◆ isJumpBodyAnm()

bool PlayerModelBaseMgr::isJumpBodyAnm ( ) const
inline

◆ isSlopeBodyAnm()

bool PlayerModelBaseMgr::isSlopeBodyAnm ( ) const
inline

◆ isPenguinPersonalBodyAnm()

bool PlayerModelBaseMgr::isPenguinPersonalBodyAnm ( ) const
inline

◆ changeFaceAngleOverrideFlag()

void PlayerModelBaseMgr::changeFaceAngleOverrideFlag ( PlayerModelBase::FaceAngleOverrideFlag flag,
bool enable )
inline

◆ getFaceAngleOverride()

const Angle3 & PlayerModelBaseMgr::getFaceAngleOverride ( ) const
inline

◆ setFaceAngleOverride()

void PlayerModelBaseMgr::setFaceAngleOverride ( const Angle3 & angle)
inline

◆ resetFaceAngleOverride()

void PlayerModelBaseMgr::resetFaceAngleOverride ( )
inline

◆ resetFaceAngleOverrideFlag()

void PlayerModelBaseMgr::resetFaceAngleOverrideFlag ( )
inline

◆ setDrawType()

void PlayerModelBaseMgr::setDrawType ( DrawType type)

◆ setTexAnmType()

void PlayerModelBaseMgr::setTexAnmType ( PlayerModelBase::TexAnmType type)
inline

◆ getModelResFile()

ModelResource * PlayerModelBaseMgr::getModelResFile ( ) const
inline

◆ getAnmResFile()

ModelResource * PlayerModelBaseMgr::getAnmResFile ( ) const
inline

◆ getAnmID()

s32 PlayerModelBaseMgr::getAnmID ( ) const
inline

◆ onOnHDokan()

void PlayerModelBaseMgr::onOnHDokan ( )
inline

◆ offOnHDokan()

void PlayerModelBaseMgr::offOnHDokan ( )
inline

◆ isOnHDokan()

bool PlayerModelBaseMgr::isOnHDokan ( ) const
inline

◆ onWaitL()

void PlayerModelBaseMgr::onWaitL ( )
inline

◆ onWaitR()

void PlayerModelBaseMgr::onWaitR ( )
inline

◆ offWait()

void PlayerModelBaseMgr::offWait ( )
inline

◆ isWaitL()

bool PlayerModelBaseMgr::isWaitL ( ) const
inline

◆ isWaitR()

bool PlayerModelBaseMgr::isWaitR ( ) const
inline

◆ onRideCloudWait()

void PlayerModelBaseMgr::onRideCloudWait ( )
inline

◆ offRideCloudWait()

void PlayerModelBaseMgr::offRideCloudWait ( )
inline

◆ isRideCloudWait()

bool PlayerModelBaseMgr::isRideCloudWait ( ) const
inline

◆ onRideLiftWait()

void PlayerModelBaseMgr::onRideLiftWait ( )
inline

◆ offRideLiftWait()

void PlayerModelBaseMgr::offRideLiftWait ( )
inline

◆ isRideLiftWait()

bool PlayerModelBaseMgr::isRideLiftWait ( ) const
inline

◆ releaseBodyAnm()

void PlayerModelBaseMgr::releaseBodyAnm ( f32 blend_duration)
inline

◆ setCarryBodyAnm()

void PlayerModelBaseMgr::setCarryBodyAnm ( f32 blend_duration,
bool bubble_reset_frame )
inline

◆ isBalloonChibiYoshiFly()

bool PlayerModelBaseMgr::isBalloonChibiYoshiFly ( ) const
inline

◆ isBubbleChibiYoshiShake()

bool PlayerModelBaseMgr::isBubbleChibiYoshiShake ( ) const
inline

Member Data Documentation

◆ mModelBase

PlayerModelBase* PlayerModelBaseMgr::mModelBase
protected

◆ mDrawType

DrawType PlayerModelBaseMgr::mDrawType
protected