aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01/RadScorpion.cpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-12-11 12:11:50 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-12-11 12:11:50 +0100
commitc10aa969c60cedef893146307fa319250901465a (patch)
treee3dfa785191047ee8e2ed533f963fe7c5cd7aacf /cpp04/ex01/RadScorpion.cpp
parent6169d697a5be59426d034b878bffc848de49491d (diff)
downloadpiscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.gz
piscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.bz2
piscine_cpp-c10aa969c60cedef893146307fa319250901465a.zip
Fixing cpp04 according to correction
Diffstat (limited to 'cpp04/ex01/RadScorpion.cpp')
-rw-r--r--cpp04/ex01/RadScorpion.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/cpp04/ex01/RadScorpion.cpp b/cpp04/ex01/RadScorpion.cpp
index 7e2ea84..a5fcb27 100644
--- a/cpp04/ex01/RadScorpion.cpp
+++ b/cpp04/ex01/RadScorpion.cpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 13:36:11 by charles #+# #+# */
-/* Updated: 2020/11/12 13:55:44 by cacharle ### ########.fr */
+/* Updated: 2020/12/11 10:54:28 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -32,3 +32,26 @@ RadScorpion::~RadScorpion()
{
std::cout << "* SPROTCH *" << std::endl;
}
+
+/*****************************************************************************/
+
+NotSoRadScorpion::NotSoRadScorpion() : Enemy(80, "NotSoRadScorpion")
+{
+ std::cout << "* not so click click click *" << std::endl;
+}
+
+NotSoRadScorpion::NotSoRadScorpion(NotSoRadScorpion const& other) : Enemy(other)
+{
+ std::cout << "* not so click click click *" << std::endl;
+}
+
+NotSoRadScorpion& NotSoRadScorpion::operator=(NotSoRadScorpion const& other)
+{
+ Enemy::operator=(other);
+ return *this;
+}
+
+NotSoRadScorpion::~NotSoRadScorpion()
+{
+ std::cout << "* SPROTCH (fuck this correction pdf) *" << std::endl;
+}