aboutsummaryrefslogtreecommitdiffstats
path: root/src/wp_enemyslingshot.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
commitaa872f4f35890027e65c930cc9cc603b5db22906 (patch)
tree48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/wp_enemyslingshot.cpp
parentParsing: the great rework (tm) finally works as intended (diff)
downloadthreshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.gz
threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.bz2
threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.xz
threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.zst
threshold-aa872f4f35890027e65c930cc9cc603b5db22906.zip
Weapons: amazing job adding another weapon salade ! outstanding
Diffstat (limited to 'src/wp_enemyslingshot.cpp')
-rw-r--r--src/wp_enemyslingshot.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wp_enemyslingshot.cpp b/src/wp_enemyslingshot.cpp
index 068f404..2a212d6 100644
--- a/src/wp_enemyslingshot.cpp
+++ b/src/wp_enemyslingshot.cpp
@@ -8,7 +8,7 @@
#include "gameplay.hpp"
wp_enemysling::wp_enemysling(const char* s, const char* r)
- : AWeapon(300.0f, 10, 10, 0.0, s, r, "sling") {}
+ : AWeapon(300.0f, 10, 10, 0.0, s, r, "sling", false) {}
int wp_enemysling::bang(std::vector<Entity>* enemies, Entity* baddie) {
if (barrel == 0) {
@@ -39,3 +39,7 @@ int wp_enemysling::bang(std::vector<Entity>* enemies, Entity* baddie) {
return (0);
}
}
+
+Projectile const& wp_enemysling::getProjectile() const {
+ return (projectile);
+}