aboutsummaryrefslogtreecommitdiff
path: root/cpp03/ex04/ScavTrap.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-12 10:54:47 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-12 10:54:47 +0100
commit96dcf214a8c40529b251ea31ef037868583dd1da (patch)
treeecbb74fd1982829b550f5b5f5451497245db1358 /cpp03/ex04/ScavTrap.hpp
parent2e0cf63a219d24ef07412deca9b0e6cb02882b46 (diff)
downloadpiscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.tar.gz
piscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.tar.bz2
piscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.zip
Fixing cpp03, moved more common logic in ClapTrap, Added better main
Diffstat (limited to 'cpp03/ex04/ScavTrap.hpp')
-rw-r--r--cpp03/ex04/ScavTrap.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp03/ex04/ScavTrap.hpp b/cpp03/ex04/ScavTrap.hpp
index e908722..32e8dd4 100644
--- a/cpp03/ex04/ScavTrap.hpp
+++ b/cpp03/ex04/ScavTrap.hpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 14:11:51 by charles #+# #+# */
-/* Updated: 2020/11/11 07:04:45 by cacharle ### ########.fr */
+/* Updated: 2020/11/12 09:18:43 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,18 +14,22 @@
# define SCAVTRAP_HPP
# include <cstdlib>
+# include <iostream>
+# include <string>
# include "ClapTrap.hpp"
-class ScavTrap : virtual public ClapTrap
+class ScavTrap : public ClapTrap
{
public:
- ScavTrap();
ScavTrap(std::string const& name);
ScavTrap(ScavTrap const& other);
ScavTrap& operator=(ScavTrap const& other);
~ScavTrap();
void challengeNewcomer(std::string const& target);
+
+private:
+ ScavTrap();
};
#endif