From 3d3f0107b7b328a9a68159edc7890cc43aa34926 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 3 Jan 2022 22:32:32 +0100 Subject: move to entity and add player --- src/gameplay.hpp | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'src/gameplay.hpp') diff --git a/src/gameplay.hpp b/src/gameplay.hpp index 3dc6b27..151b591 100644 --- a/src/gameplay.hpp +++ b/src/gameplay.hpp @@ -2,31 +2,16 @@ #define GAMEPLAY_H_ #include "window.hpp" +#include "entity.hpp" #include -class Enemy { - public: - float posX; - float posY; - Vector2 direction; - Enemy(); - ~Enemy(); -}; - -class Player { - public: - float posX; - float posY; - Vector2 direction; - Player(); - ~Player(); -}; - class Game { int nEnemies; - std::vector * enemies; + std::vector * enemies; + + Entity * player; public: Game(); -- cgit v1.2.3