diff options
Diffstat (limited to '')
-rw-r--r-- | src/weapon.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/weapon.cpp b/src/weapon.cpp index f7426d6..34f7a12 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -10,8 +10,13 @@ #include <iostream> -AWeapon::AWeapon(float const & rg, unsigned int const & dmg, unsigned int const & mag, const char *s, const char *r) : - range(rg), damage(dmg), max(mag) +AWeapon::AWeapon(float const & rg, + unsigned int const & dmg, + unsigned int const & mag, + double const & cd, + const char *s, + const char *r) : + range(rg), damage(dmg), max(mag), cooldown(cd) { shot = LoadSound(s); reload = LoadSound(r); |