aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapon.hpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-07 00:21:25 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-07 00:21:25 +0100
commite5b95c4b1559adac1283360903941350acc72e0e (patch)
tree0da038bed7fd9dba1f60e8296b5fc0a9c54682d1 /src/weapon.hpp
parentweapon as an abstract class. now make more weapons (diff)
downloadthreshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.gz
threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.bz2
threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.xz
threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.zst
threshold-e5b95c4b1559adac1283360903941350acc72e0e.zip
almost there
Diffstat (limited to 'src/weapon.hpp')
-rw-r--r--src/weapon.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/weapon.hpp b/src/weapon.hpp
index e43b7da..a5099d2 100644
--- a/src/weapon.hpp
+++ b/src/weapon.hpp
@@ -11,6 +11,10 @@
#include "raylib.h"
+#include <vector>
+
+class Entity;
+
class AWeapon {
protected:
Sound shot;
@@ -26,7 +30,7 @@ public:
AWeapon(float const &rg, unsigned int const &dmg, unsigned int const & mag, const char *s, const char *r);
~AWeapon();
- virtual int bang() = 0;
+ virtual int bang(std::vector<Entity> * enemies, Vector2 playerDirection, Vector2 playerPosition) = 0;
void refill();
bool empty;