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 setCapMode (PlayerModelBase::CapMode mode)
PlayerModelBasegetModelBase ()
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 setJumpIndex (s32 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 checkFrameCtrlFlagUnk2 ()
bool checkBodyFrameCtrlFlagUnk2 ()
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::Vector3fgetHeadTopPosP ()
sead::Vector3fgetHeadPosP ()
u32 getAnmFlag (PlayerModelBase::AnmFlagType type) const
bool isAnmFlag (PlayerModelBase::AnmFlagType type, PlayerModelBase::AnmFlagBit bit) const
bool isSitAnm () const
bool isHangAnm () const
bool isSwimAnm () const
void changeFaceAngleOverrideFlag (PlayerModelBase::FaceAngleOverrideFlag flag, bool enable)
const Angle3getFaceAngleOverride () const
void setFaceAngleOverride (const Angle3 &angle)
void resetFaceAngleOverride ()
void resetFaceAngleOverrideFlag ()
void setDrawType (DrawType type)
void setTexAnmType (PlayerModelBase::TexAnmType type)
ModelResourcegetModelResFile () const
ModelResourcegetAnmResFile () 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

PlayerModelBasemModelBase
DrawType mDrawType

Member Enumeration Documentation

◆ DrawType

Enumerator
cDrawType_Normal 
cDrawType_InBalloon 
cDrawType_InDistantView 

Constructor & Destructor Documentation

◆ PlayerModelBaseMgr()

PlayerModelBaseMgr::PlayerModelBaseMgr ( )

Member Function Documentation

◆ setCapMode()

virtual void PlayerModelBaseMgr::setCapMode ( PlayerModelBase::CapMode mode)
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

◆ setJumpIndex()

void PlayerModelBaseMgr::setJumpIndex ( s32 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

◆ checkFrameCtrlFlagUnk2()

bool PlayerModelBaseMgr::checkFrameCtrlFlagUnk2 ( )
inline

◆ checkBodyFrameCtrlFlagUnk2()

bool PlayerModelBaseMgr::checkBodyFrameCtrlFlagUnk2 ( )
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()

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

◆ isAnmFlag()

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

◆ isSitAnm()

bool PlayerModelBaseMgr::isSitAnm ( ) const
inline

◆ isHangAnm()

bool PlayerModelBaseMgr::isHangAnm ( ) const
inline

◆ isSwimAnm()

bool PlayerModelBaseMgr::isSwimAnm ( ) 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