diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-03 21:52:49 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-03 21:52:49 +0100 |
commit | 85823665568eb4e482c40c5eb3256d545d0dfde5 (patch) | |
tree | 9c5dd5bde3a49cc0565bdc13fd24c2715e4830c4 /src/gameplay.hpp | |
parent | initial commit (diff) | |
download | threshold-85823665568eb4e482c40c5eb3256d545d0dfde5.tar.gz threshold-85823665568eb4e482c40c5eb3256d545d0dfde5.tar.bz2 threshold-85823665568eb4e482c40c5eb3256d545d0dfde5.tar.xz threshold-85823665568eb4e482c40c5eb3256d545d0dfde5.tar.zst threshold-85823665568eb4e482c40c5eb3256d545d0dfde5.zip |
add circles
Diffstat (limited to '')
-rw-r--r-- | src/gameplay.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gameplay.hpp b/src/gameplay.hpp index 3b611fe..3c73d09 100644 --- a/src/gameplay.hpp +++ b/src/gameplay.hpp @@ -3,11 +3,13 @@ #include "window.hpp" +#include <vector> + class Enemy { - float posX; - float posY; - Vector2 direction; public: + float posX; + float posY; + Vector2 direction; Enemy(); ~Enemy(); }; @@ -15,7 +17,7 @@ class Enemy { class Game { int nEnemies; - Enemy * enemies; + std::vector<Enemy> * enemies; public: Game(); |