aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.hpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-07 13:38:58 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-07 13:38:58 +0100
commit24cbda44818cf3a866685638ef6cdbf466a1fb1a (patch)
tree1b3d12e3e39ba1635c183bb1a69fbc82da10f888 /src/entity.hpp
parentVERSION 0.0.5 AND A HALF (diff)
downloadthreshold-24cbda44818cf3a866685638ef6cdbf466a1fb1a.tar.gz
threshold-24cbda44818cf3a866685638ef6cdbf466a1fb1a.tar.bz2
threshold-24cbda44818cf3a866685638ef6cdbf466a1fb1a.tar.xz
threshold-24cbda44818cf3a866685638ef6cdbf466a1fb1a.tar.zst
threshold-24cbda44818cf3a866685638ef6cdbf466a1fb1a.zip
add new weapon, AR and add switching weapons
Diffstat (limited to 'src/entity.hpp')
-rw-r--r--src/entity.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entity.hpp b/src/entity.hpp
index 6c803df..40818ee 100644
--- a/src/entity.hpp
+++ b/src/entity.hpp
@@ -12,6 +12,7 @@
#include "window.hpp"
#include "weapon.hpp"
+#include <map>
class Entity {
public:
@@ -25,7 +26,8 @@ class Entity {
double furyTime;
double reloadTime;
Vector2 direction;
- AWeapon * wp;
+ std::map<int, AWeapon*> wp;
+ AWeapon * currentWeapon;
Image img;
Texture2D idleTex;
Texture2D hurtTex;