2025-07-12 17:28:49 +02:00
|
|
|
|
|
|
|
struct Text {
|
|
|
|
Font font;
|
2025-07-12 23:31:14 +02:00
|
|
|
std:: string text;
|
2025-07-12 17:28:49 +02:00
|
|
|
Vector2 position;
|
|
|
|
float fontSize, spacing;
|
|
|
|
Color tint;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Button {
|
|
|
|
Rectangle rectangle;
|
|
|
|
Color color;
|
|
|
|
Text text;
|
|
|
|
};
|
|
|
|
|
2025-07-12 23:31:14 +02:00
|
|
|
struct Bar {
|
|
|
|
Rectangle complete, progression;
|
|
|
|
int max, actual;
|
|
|
|
Text text;
|
|
|
|
Color color;
|
|
|
|
};
|
2025-07-12 17:28:49 +02:00
|
|
|
|
2025-07-12 23:31:14 +02:00
|
|
|
struct Ennemy_stats {
|
2025-07-14 14:38:08 +02:00
|
|
|
Rectangle card;
|
2025-07-12 23:31:14 +02:00
|
|
|
Text name, level;
|
|
|
|
Bar health, shield, speed, tame;
|
|
|
|
};
|
2025-07-12 17:28:49 +02:00
|
|
|
|
2025-07-14 15:12:29 +02:00
|
|
|
Button create_button(Button_types type_arg, Button_sizes size_arg, const std::vector<float>& position_arg, std::string text_arg, const std::vector<float>& screen_arg);
|
2025-07-12 23:31:14 +02:00
|
|
|
void draw_buttons(const std::vector<Button>& buttons_arg);
|
2025-07-14 15:12:29 +02:00
|
|
|
std::vector<float> button_size(Button_sizes size_arg, const std::vector<float>& screen_arg);
|
2025-07-14 14:38:08 +02:00
|
|
|
float text_size(Button_sizes size_arg);
|
|
|
|
Color type_color(Stats type_arg);
|
2025-07-12 23:31:14 +02:00
|
|
|
|
2025-07-14 15:12:29 +02:00
|
|
|
Bar create_bar(Stats type_arg, int& max_arg, int& actual_arg, const std::vector<float>& position_arg, const std::vector<float>& container_arg);
|
2025-07-12 23:31:14 +02:00
|
|
|
void draw_bar(const Bar& bar_arg);
|
|
|
|
|
2025-07-14 15:12:29 +02:00
|
|
|
Ennemy_stats create_ennemy_stats(Ennemy& ennemy_arg, const std::vector<float>& position_arg, const std::vector<float>& container_arg);
|
2025-07-14 14:38:08 +02:00
|
|
|
void draw_ennemy_stats(const Ennemy_stats& ennemy_stats_arg);
|
|
|
|
|
|
|
|
void draw_text(const Text& text_arg);
|