From 96dcf214a8c40529b251ea31ef037868583dd1da Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 12 Nov 2020 10:54:47 +0100 Subject: Fixing cpp03, moved more common logic in ClapTrap, Added better main --- cpp03/ex03/ClapTrap.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp03/ex03/ClapTrap.hpp') diff --git a/cpp03/ex03/ClapTrap.hpp b/cpp03/ex03/ClapTrap.hpp index 00fd168..8fcbf1f 100644 --- a/cpp03/ex03/ClapTrap.hpp +++ b/cpp03/ex03/ClapTrap.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 15:20:45 by charles #+# #+# */ -/* Updated: 2020/11/11 06:39:00 by cacharle ### ########.fr */ +/* Updated: 2020/11/12 08:43:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,7 +20,6 @@ class ClapTrap { public: - ClapTrap(); ClapTrap(std::string const& name); ClapTrap(ClapTrap const& other); ClapTrap& operator=(ClapTrap const& other); @@ -41,6 +40,8 @@ protected: unsigned int m_meleeAttackDamage; unsigned int m_rangedAttackDamage; unsigned int m_armorDamageReduction; + + ClapTrap(); }; #endif -- cgit