mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-19 09:45:14 +00:00
50 lines
No EOL
1.8 KiB
C++
50 lines
No EOL
1.8 KiB
C++
#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
|
|
}; |