From f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 14 Jan 2022 14:12:14 +0100 Subject: strange behavior... I WILL find out whats going on ! --- src/weapon.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/weapon.hpp') diff --git a/src/weapon.hpp b/src/weapon.hpp index 0120928..ad63344 100644 --- a/src/weapon.hpp +++ b/src/weapon.hpp @@ -12,6 +12,7 @@ #include "raylib.h" #include +#include class Entity; @@ -27,14 +28,16 @@ class AWeapon { float const range; unsigned int const& damage; + const std::string name; public: - AWeapon(float const rg, - unsigned int const& dmg, - unsigned int const& mag, - double const& cooldown, - const char* s, - const char* r); + AWeapon(float const rg, // range + unsigned int const& dmg, // damage + unsigned int const& mag, // mag capacity + double const& cooldown, // duh + const char* s, // shot sound path + const char* r, // reload sound path + std::string const & nm); // name ~AWeapon(); virtual int bang(std::vector* enemies, Entity* player) = 0; -- cgit v1.2.3