From 4eecb32ffcf48c42672782fbcd53781a22e95ebf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 17 Nov 2020 09:36:17 +0100 Subject: Added cpp04/ex03 main --- cpp04/ex01/AWeapon.hpp | 3 +-- cpp04/ex01/Character.hpp | 2 +- cpp04/ex01/Enemy.hpp | 5 ++--- cpp04/ex01/main.cpp | 4 +--- 4 files changed, 5 insertions(+), 9 deletions(-) (limited to 'cpp04/ex01') diff --git a/cpp04/ex01/AWeapon.hpp b/cpp04/ex01/AWeapon.hpp index 0296cd5..cfd803c 100644 --- a/cpp04/ex01/AWeapon.hpp +++ b/cpp04/ex01/AWeapon.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 11:22:06 by charles #+# #+# */ -/* Updated: 2020/11/12 13:34:13 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 08:53:43 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -35,7 +35,6 @@ protected: private: AWeapon(); - }; #endif diff --git a/cpp04/ex01/Character.hpp b/cpp04/ex01/Character.hpp index 08f1b59..8fa1829 100644 --- a/cpp04/ex01/Character.hpp +++ b/cpp04/ex01/Character.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 13:42:25 by charles #+# #+# */ -/* Updated: 2020/11/13 11:14:03 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 09:06:25 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/cpp04/ex01/Enemy.hpp b/cpp04/ex01/Enemy.hpp index 8b0dbf1..954e147 100644 --- a/cpp04/ex01/Enemy.hpp +++ b/cpp04/ex01/Enemy.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 13:23:40 by charles #+# #+# */ -/* Updated: 2020/11/12 13:55:07 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 09:01:14 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,10 +20,9 @@ class Enemy public: Enemy(Enemy const& other); Enemy& operator=(Enemy const& other); - virtual ~Enemy(); Enemy(int hp, std::string const& type); - + virtual ~Enemy(); std::string const& getType() const; int getHP() const; diff --git a/cpp04/ex01/main.cpp b/cpp04/ex01/main.cpp index 5b907bd..7b0729c 100644 --- a/cpp04/ex01/main.cpp +++ b/cpp04/ex01/main.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 09:05:58 by charles #+# #+# */ -/* Updated: 2020/11/13 12:00:52 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 09:16:14 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -215,8 +215,6 @@ int main() c.recoverAP(); std::cout << c; c.attack(r); - - // std::cout << "################ DESTRUCTORS" << std::endl; } return 0; -- cgit