SuperMarioOdysseyOnline/include/game/Player/PlayerAnimator.h

50 lines
1.8 KiB
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
#pragma once
#include "PlayerAnimFrameCtrl.h"
#include "PlayerModelHolder.h"
#include "sead/prim/seadSafeString.hpp"
class PlayerAnimator {
public:
void startAnim(const sead::SafeString &animName);
void startSubAnim(const sead::SafeString &animName);
void startSubAnimOnlyAir(const sead::SafeString &animName);
void startUpperBodyAnimAndHeadVisKeep(const sead::SafeString &animName);
void startAnimDead(void); // chooses one of the 5 death animations and starts that animation
void endSubAnim(void);
void updateAnimFrame(void);
void clearUpperBodyAnim(void);
bool isAnim(const sead::SafeString &animName) const;
bool isSubAnim(sead::SafeString const &subAnimName) const;
bool isSubAnimEnd(void) const;
bool isUpperBodyAnimAttached(void) const;
float getAnimFrame() const;
float getAnimFrameMax() const;
float getAnimFrameRate() const;
float getSubAnimFrame() const;
float getSubAnimFrameMax() const;
float getBlendWeight(int index);
void setAnimRate(float);
void setAnimRateCommon(float);
void setAnimFrame(float);
void setAnimFrameCommon(float);
void setSubAnimFrame(float);
void setSubAnimRate(float);
void setBlendWeight(float,float,float,float,float,float);
void setModelAlpha(float);
void setPartsAnimRate(float, char const*);
void setPartsAnimFrame(float, char const*);
PlayerModelHolder *mModelHolder; // 0x0
al::LiveActor *mPlayerDeco; // 0x8
void *unkPtr; // 0x10
PlayerAnimFrameCtrl *mAnimFrameCtrl; // 0x18
sead::SafeString curAnim; // 0x20
unsigned char padding_78[0x78 - 0x30];
sead::SafeString curSubAnim; //0x78
};