From b8e39b947890e74d82530e25ad9d02668aae1f0c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 12 Nov 2020 15:46:07 +0100 Subject: Reformating cpp04 classes --- cpp04/ex01/RadScorpion.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cpp04/ex01/RadScorpion.cpp') diff --git a/cpp04/ex01/RadScorpion.cpp b/cpp04/ex01/RadScorpion.cpp index 8422fb7..7e2ea84 100644 --- a/cpp04/ex01/RadScorpion.cpp +++ b/cpp04/ex01/RadScorpion.cpp @@ -6,27 +6,26 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 13:36:11 by charles #+# #+# */ -/* Updated: 2020/04/14 13:37:54 by charles ### ########.fr */ +/* Updated: 2020/11/12 13:55:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "RadScorpion.hpp" -RadScorpion::RadScorpion() - : Enemy(80, "RadScorpion") +RadScorpion::RadScorpion() : Enemy(80, "RadScorpion") { std::cout << "* click click click *" << std::endl; } -RadScorpion::RadScorpion(RadScorpion const& other) +RadScorpion::RadScorpion(RadScorpion const& other) : Enemy(other) { - *this = other; std::cout << "* click click click *" << std::endl; } -void RadScorpion::operator=(RadScorpion const& other) +RadScorpion& RadScorpion::operator=(RadScorpion const& other) { Enemy::operator=(other); + return *this; } RadScorpion::~RadScorpion() -- cgit