From 119f7f96e77a2d86d692e82645dde4c2dc054052 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 13 Apr 2020 18:44:40 +0200 Subject: cpp03, except ex04 --- cpp03/ex04/NinjaTrap.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cpp03/ex04/NinjaTrap.hpp (limited to 'cpp03/ex04/NinjaTrap.hpp') diff --git a/cpp03/ex04/NinjaTrap.hpp b/cpp03/ex04/NinjaTrap.hpp new file mode 100644 index 0000000..72d7039 --- /dev/null +++ b/cpp03/ex04/NinjaTrap.hpp @@ -0,0 +1,35 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* NinjaTrap.hpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/13 17:31:24 by charles #+# #+# */ +/* Updated: 2020/04/13 18:41:44 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef NINJATRAP_HPP +# define NINJATRAP_HPP + +# include "ClapTrap.hpp" +# include "FragTrap.hpp" +# include "ScavTrap.hpp" + +class NinjaTrap : public virtual ClapTrap +{ +public: + NinjaTrap(); + NinjaTrap(std::string name); + NinjaTrap(NinjaTrap const& other); + void operator=(NinjaTrap const& other); + ~NinjaTrap(); + + void ninjaShoebox(NinjaTrap const& target); + void ninjaShoebox(FragTrap const& target); + void ninjaShoebox(ScavTrap const& target); + void ninjaShoebox(ClapTrap const& target); +}; + +#endif -- cgit