From c10aa969c60cedef893146307fa319250901465a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 11 Dec 2020 12:11:50 +0100 Subject: Fixing cpp04 according to correction --- cpp04/ex01/RadScorpion.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'cpp04/ex01/RadScorpion.cpp') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; +} -- cgit