aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01/Enemy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp04/ex01/Enemy.hpp')
-rw-r--r--cpp04/ex01/Enemy.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp04/ex01/Enemy.hpp b/cpp04/ex01/Enemy.hpp
index 582a61c..8b0dbf1 100644
--- a/cpp04/ex01/Enemy.hpp
+++ b/cpp04/ex01/Enemy.hpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 13:23:40 by charles #+# #+# */
-/* Updated: 2020/04/14 14:13:07 by charles ### ########.fr */
+/* Updated: 2020/11/12 13:55:07 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,7 +19,7 @@ class Enemy
{
public:
Enemy(Enemy const& other);
- void operator=(Enemy const& other);
+ Enemy& operator=(Enemy const& other);
virtual ~Enemy();
Enemy(int hp, std::string const& type);
@@ -30,10 +30,11 @@ public:
virtual void takeDamage(int amount);
protected:
- Enemy();
-
- int m_hp;
+ int m_hp;
std::string m_type;
+
+private:
+ Enemy();
};
#endif