aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapon.hpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-11 17:06:20 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-11 17:06:20 +0100
commit59d902df725c2d6a1b7cad016326ca51316b937f (patch)
treeeae43bbc5d3faf3799fe242f1648115e17a9df67 /src/weapon.hpp
parentclang-format chromium test (diff)
downloadthreshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.gz
threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.bz2
threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.xz
threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.zst
threshold-59d902df725c2d6a1b7cad016326ca51316b937f.zip
clang format blind letsgo !
Diffstat (limited to '')
-rw-r--r--src/weapon.hpp45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/weapon.hpp b/src/weapon.hpp
index b6e8c99..0120928 100644
--- a/src/weapon.hpp
+++ b/src/weapon.hpp
@@ -16,33 +16,32 @@
class Entity;
class AWeapon {
-protected:
- Sound shot;
- Sound reload;
+ protected:
+ Sound shot;
+ Sound reload;
- unsigned int max;
+ unsigned int max;
- double cooldown;
- double t;
+ double cooldown;
+ double t;
+ float const range;
+ unsigned int const& damage;
- float const range;
- unsigned int const &damage;
-
-public:
+ public:
AWeapon(float const rg,
- unsigned int const &dmg,
- unsigned int const & mag,
- double const & cooldown,
- const char *s,
- const char *r);
- ~AWeapon();
-
- virtual int bang(std::vector<Entity> * enemies, Entity * player) = 0;
- void refill();
-
- bool empty;
- unsigned int barrel;
+ unsigned int const& dmg,
+ unsigned int const& mag,
+ double const& cooldown,
+ const char* s,
+ const char* r);
+ ~AWeapon();
+
+ virtual int bang(std::vector<Entity>* enemies, Entity* player) = 0;
+ void refill();
+
+ bool empty;
+ unsigned int barrel;
};
-#endif // WEAPON_H_
+#endif // WEAPON_H_