added header files

This commit is contained in:
nosch
2025-08-31 03:21:47 +02:00
parent 0a6b44e6af
commit 1695d91cf8
6 changed files with 97 additions and 24 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef ENTITYBASE_HPP
#define ENTITYBASE_HPP
#include "../../include/raylib-cpp.hpp"
#include "../render/textures.hpp"
#include <functional>
#include <sys/types.h>
#include <stdio.h>
struct Entity;
using ControllerFunc = std::function<void(Entity&)>;
struct Entity {
ID id;
raylib::Vector2 position;
int health;
int maxhealth;
std::string nametag;
ControllerFunc controller;
void Update();
void Draw();
Entity(ID Id, int x, int y, std::string &n, int h, int maxh);
};
#endif //ENTITYBASE_HPP