From 24cbda44818cf3a866685638ef6cdbf466a1fb1a Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 7 Jan 2022 13:38:58 +0100 Subject: add new weapon, AR and add switching weapons --- src/entity.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/entity.hpp') 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 class Entity { public: @@ -25,7 +26,8 @@ class Entity { double furyTime; double reloadTime; Vector2 direction; - AWeapon * wp; + std::map wp; + AWeapon * currentWeapon; Image img; Texture2D idleTex; Texture2D hurtTex; -- cgit v1.2.3