aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01/PlasmaRifle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp04/ex01/PlasmaRifle.hpp')
-rw-r--r--cpp04/ex01/PlasmaRifle.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp04/ex01/PlasmaRifle.hpp b/cpp04/ex01/PlasmaRifle.hpp
index 8ce7b0d..53088a9 100644
--- a/cpp04/ex01/PlasmaRifle.hpp
+++ b/cpp04/ex01/PlasmaRifle.hpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 12:15:47 by charles #+# #+# */
-/* Updated: 2020/11/12 13:36:55 by cacharle ### ########.fr */
+/* Updated: 2020/12/11 10:55:04 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,12 +22,24 @@ public:
PlasmaRifle();
PlasmaRifle(PlasmaRifle const& other);
PlasmaRifle& operator=(PlasmaRifle const& other);
- ~PlasmaRifle();
+ virtual ~PlasmaRifle();
virtual void attack() const;
private:
};
+class ThisIsNotAPlasmaRifle : public AWeapon
+{
+public:
+ ThisIsNotAPlasmaRifle();
+ ThisIsNotAPlasmaRifle(ThisIsNotAPlasmaRifle const& other);
+ ThisIsNotAPlasmaRifle& operator=(ThisIsNotAPlasmaRifle const& other);
+ virtual ~ThisIsNotAPlasmaRifle();
+
+ virtual void attack() const;
+
+private:
+};
#endif