2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
|
|
|
class Animation
|
|
|
|
{
|
|
|
|
private:
|
2021-03-02 14:18:37 -05:00
|
|
|
inline static bool loop = false;
|
|
|
|
inline static bool secondary = false;
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-06-17 09:00:32 -04:00
|
|
|
inline static SearchData anim_data{"animation"};
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-04-25 14:59:14 -04:00
|
|
|
struct Cutscene
|
|
|
|
{
|
2021-06-17 09:00:32 -04:00
|
|
|
inline static SearchData data{ "cutscene" };
|
2021-04-25 14:59:14 -04:00
|
|
|
inline static std::string scene_name = "";
|
|
|
|
inline static int interior = 0;
|
|
|
|
inline static bool running = false;
|
|
|
|
};
|
|
|
|
|
2021-03-02 14:18:37 -05:00
|
|
|
inline static char anim_buffer[INPUT_BUFFER_SIZE] = "";
|
|
|
|
inline static char ifp_buffer[INPUT_BUFFER_SIZE] = "";
|
|
|
|
|
|
|
|
inline static std::vector<std::string> fighting_vec{ "Default","Boxing","Kung fu","Kick Boxing","Punch Kick" };
|
|
|
|
inline static int fighting_selected = 0;
|
|
|
|
inline static std::vector<std::string> walking_vec{ "default", "man", "shuffle", "oldman", "gang1", "gang2",
|
|
|
|
"oldfatman", "fatman", "jogger", "drunkman", "blindman", "swat", "woman", "shopping", "busywoman",
|
|
|
|
"sexywoman", "pro", "oldwoman", "fatwoman", "jogwoman", "oldfatwoman", "skate" };
|
|
|
|
inline static std::string walking_selected = "default";
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
Animation();
|
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();
|
2020-12-02 16:19:16 -05:00
|
|
|
static void PlayAnimation(std::string& rootkey, std::string& anim, std::string& ifp);
|
2021-04-25 14:59:14 -04:00
|
|
|
static void PlayCutscene(std::string& rootkey, std::string& cutscene_str, std::string& interior);
|
2021-01-07 16:07:45 -05:00
|
|
|
static void RemoveAnimation(std::string& rootkey, std::string& anim, std::string& ifp);
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|
|
|
|
|