diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 14:12:14 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 14:12:14 +0100 |
commit | f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 (patch) | |
tree | 6899f16faabe3210989792de92c8b021f112d78a /src/weapon.hpp | |
parent | boss has the correct textures (diff) | |
download | threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.gz threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.bz2 threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.xz threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.zst threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.zip |
strange behavior... I WILL find out whats going on !
Diffstat (limited to 'src/weapon.hpp')
-rw-r--r-- | src/weapon.hpp | 15 |
1 files changed, 9 insertions, 6 deletions
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 <vector> +#include <iostream> 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<Entity>* enemies, Entity* player) = 0; |