aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.hpp
diff options
context:
space:
mode:
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();