diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-07 13:52:28 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-07 13:52:28 +0100 |
commit | 990ca25986157ce629b07d43257e0fbf36071317 (patch) | |
tree | 84dc750555b2fdad82fdcdea16d031c247a95809 /src/weapon.cpp | |
parent | add new weapon, AR and add switching weapons (diff) | |
download | threshold-990ca25986157ce629b07d43257e0fbf36071317.tar.gz threshold-990ca25986157ce629b07d43257e0fbf36071317.tar.bz2 threshold-990ca25986157ce629b07d43257e0fbf36071317.tar.xz threshold-990ca25986157ce629b07d43257e0fbf36071317.tar.zst threshold-990ca25986157ce629b07d43257e0fbf36071317.zip |
references are weaird, man
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); |