From af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Sat, 17 Feb 2018 00:29:32 +0100 Subject: add Item type, use for MeleeWeapon --- src/main/headers/Bullet.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/headers/Bullet.hpp') diff --git a/src/main/headers/Bullet.hpp b/src/main/headers/Bullet.hpp index e38c3f2..6ab5dbe 100644 --- a/src/main/headers/Bullet.hpp +++ b/src/main/headers/Bullet.hpp @@ -3,10 +3,11 @@ #include "Item.hpp" -class Bullet : public Item +class Bullet : protected Item { public: - bool use(RangedWeapon &weapon); -} + virtual bool use(RangedWeapon &weapon); + virtual bool decreaseAmount(int qnt); +}; #endif -- cgit v1.2.1