Make ex03 comply with the OCF
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 12:26:24 +0000 (14:26 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 12:26:24 +0000 (14:26 +0200)
ex03/HumanA.h
ex03/HumanB.h

index e8f48819915bda0da567483cc739d4129d4c0bc8..98c8d9a7dc1f76b531830780ecca40ff97702830 100644 (file)
@@ -10,6 +10,10 @@ class HumanA
                std::string     m_name;
                Weapon          &m_weapon;
 
+               HumanA();
+               HumanA(const HumanA &other);
+               HumanA  &operator=(const HumanA &other);
+
        public:
                HumanA(std::string name, Weapon &weapon);
                ~HumanA();
index 241ece7dd299cbb7883a80ffc6dfe7639499e653..73a08c452238172cc0267055a26f92fa511e8525 100644 (file)
@@ -10,6 +10,10 @@ class HumanB
                std::string     m_name;
                Weapon          *m_weapon;
 
+               HumanB();
+               HumanB(const HumanB &other);
+               HumanB  &operator=(const HumanB &other);
+
        public:
                HumanB(std::string name = "human", Weapon *weapon = NULL);
                ~HumanB();