aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01
diff options
context:
space:
mode:
Diffstat (limited to 'cpp04/ex01')
-rw-r--r--cpp04/ex01/AWeapon.hpp3
-rw-r--r--cpp04/ex01/Character.hpp2
-rw-r--r--cpp04/ex01/Enemy.hpp5
-rw-r--r--cpp04/ex01/main.cpp4
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;