2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-06-18 12:49:11 -04:00
|
|
|
class CAnimation
|
2020-12-02 16:19:16 -05:00
|
|
|
{
|
|
|
|
private:
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static char m_nAnimBuffer[INPUT_BUFFER_SIZE] = "";
|
|
|
|
inline static SSearchData m_AnimData{ "animation" };
|
|
|
|
static struct
|
|
|
|
{
|
|
|
|
inline static SSearchData m_Data{ "cutscene" };
|
|
|
|
inline static std::string m_SceneName = "";
|
|
|
|
inline static int m_nInterior = 0;
|
|
|
|
inline static bool m_bRunning = false;
|
|
|
|
} m_Cutscene;
|
|
|
|
inline static int m_nFightingStyle = 0;
|
|
|
|
inline static char m_nIfpBuffer[INPUT_BUFFER_SIZE] = "";
|
|
|
|
inline static bool m_Loop = false;
|
|
|
|
inline static bool m_bSecondary = false;
|
|
|
|
inline static std::string m_nWalkingStyle = "default";
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static std::vector<std::string> m_FightingStyleList = {"Default", "Boxing", "Kung fu", "Kick Boxing", "Punch Kick"};
|
|
|
|
inline static std::vector<std::string> m_WalkingStyleList =
|
2021-04-25 14:59:14 -04:00
|
|
|
{
|
2021-06-18 12:49:11 -04:00
|
|
|
"default", "man", "shuffle", "oldman", "gang1", "gang2", "oldfatman",
|
|
|
|
"fatman", "jogger", "drunkman", "blindman", "swat", "woman", "shopping", "busywoman",
|
|
|
|
"sexywoman", "pro", "oldwoman", "fatwoman", "jogwoman", "oldfatwoman", "skate"
|
2021-04-25 14:59:14 -04:00
|
|
|
};
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
protected:
|
2021-06-18 12:49:11 -04:00
|
|
|
CAnimation();
|
2021-01-07 16:07:45 -05:00
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
public:
|
2021-02-24 16:54:45 -05:00
|
|
|
static void Draw();
|
2021-06-18 12:49:11 -04:00
|
|
|
static void PlayAnimation(std::string& rootKey, std::string& anim, std::string& ifp);
|
|
|
|
static void PlayCutscene(std::string& rootKey, std::string& cutsceneId, std::string& interior);
|
|
|
|
static void RemoveAnimation(std::string& rootKey, std::string& anim, std::string& ifp);
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|