From a8bcacc95045102e67f2feabbdddf79535837554 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 19 Aug 2021 18:46:51 +0200 Subject: forgot to make repo until now --- game/entity.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 game/entity.h (limited to 'game/entity.h') diff --git a/game/entity.h b/game/entity.h new file mode 100644 index 0000000..1fcf026 --- /dev/null +++ b/game/entity.h @@ -0,0 +1,43 @@ +#ifndef ENTITIES_H +#define ENTITIES_H + +#include +#include + +#include "../umath/vec2.h" + +class Ability { + public: + Ability(); +}; + +class EntityInfo { + public: + EntityInfo() { spritebounds = vec2 { 16*6, 16 }; } + + std::string name; + + float hp; + float attack; + float defence; + int range; + float sight; + int move; + std::vector abilities; + + vec2 spritebounds; +}; + +class Entity { + public: + Entity(int x, int y, EntityInfo &info, int owner) + : x(x), y(y), info(info), owner(owner) {} + + int x, y; + bool done = false; + EntityInfo &info; + + int owner; +}; + +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf