diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-17 09:36:17 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-17 09:36:17 +0100 |
| commit | 4eecb32ffcf48c42672782fbcd53781a22e95ebf (patch) | |
| tree | cef35987dc325ed2f0a8e5085f9e7a18554367fe /cpp04/ex01 | |
| parent | 62be117da22b5159c8712537ac7ef135ff3007b8 (diff) | |
| download | piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.tar.gz piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.tar.bz2 piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.zip | |
Added cpp04/ex03 main
Diffstat (limited to 'cpp04/ex01')
| -rw-r--r-- | cpp04/ex01/AWeapon.hpp | 3 | ||||
| -rw-r--r-- | cpp04/ex01/Character.hpp | 2 | ||||
| -rw-r--r-- | cpp04/ex01/Enemy.hpp | 5 | ||||
| -rw-r--r-- | cpp04/ex01/main.cpp | 4 |
4 files changed, 5 insertions, 9 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; |
