diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-03 22:32:32 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-03 22:32:32 +0100 |
commit | 3d3f0107b7b328a9a68159edc7890cc43aa34926 (patch) | |
tree | e2d80aeb851803b159a34b7ae85a161b65527b3f /src/gameplay.hpp | |
parent | balls move yknow (diff) | |
download | threshold-3d3f0107b7b328a9a68159edc7890cc43aa34926.tar.gz threshold-3d3f0107b7b328a9a68159edc7890cc43aa34926.tar.bz2 threshold-3d3f0107b7b328a9a68159edc7890cc43aa34926.tar.xz threshold-3d3f0107b7b328a9a68159edc7890cc43aa34926.tar.zst threshold-3d3f0107b7b328a9a68159edc7890cc43aa34926.zip |
move to entity and add player
Diffstat (limited to 'src/gameplay.hpp')
-rw-r--r-- | src/gameplay.hpp | 23 |
1 files changed, 4 insertions, 19 deletions
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 <vector> -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<Enemy> * enemies; + std::vector<Entity> * enemies; + + Entity * player; public: Game(); |