aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.hpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-03 22:32:32 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-03 22:32:32 +0100
commit3d3f0107b7b328a9a68159edc7890cc43aa34926 (patch)
treee2d80aeb851803b159a34b7ae85a161b65527b3f /src/gameplay.hpp
parentballs move yknow (diff)
downloadthreshold-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.hpp23
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();