2025-07-12 23:31:14 +02:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <raylib.h>
|
|
|
|
#include "../define.h"
|
|
|
|
#include "../logic/player.h"
|
|
|
|
#include "ui_elements.h"
|
|
|
|
#include "combat_interface.h"
|
|
|
|
|
2025-07-14 15:12:29 +02:00
|
|
|
void display_combat_interface(Player& player_arg, std::vector<Ennemy>& ennemies_arg, const std::vector<float>& screen_arg) {
|
2025-07-14 14:38:08 +02:00
|
|
|
|
|
|
|
Ennemy ennemy = ennemies_arg[0];
|
2025-07-12 23:31:14 +02:00
|
|
|
std::vector<float> position = {0.5f, 0.5f};
|
2025-07-14 14:38:08 +02:00
|
|
|
Ennemy_stats first_ennemy_stats = create_ennemy_stats(ennemy, position, screen_arg);
|
2025-07-12 23:31:14 +02:00
|
|
|
|
|
|
|
//Dessin
|
|
|
|
BeginDrawing();
|
|
|
|
ClearBackground(BLACK);
|
2025-07-14 14:38:08 +02:00
|
|
|
draw_ennemy_stats(first_ennemy_stats);
|
2025-07-12 23:31:14 +02:00
|
|
|
EndDrawing();
|
|
|
|
}
|