diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-13 18:44:40 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-13 18:44:40 +0200 |
| commit | 119f7f96e77a2d86d692e82645dde4c2dc054052 (patch) | |
| tree | 73c863970a5d0ac8a3c77f9bf96e5aaf2c4c66c8 /cpp03/ex04/SuperTrap.hpp | |
| parent | 3d48ed0312f9c0ae691560d7cd688f46917e3fd4 (diff) | |
| download | piscine_cpp-119f7f96e77a2d86d692e82645dde4c2dc054052.tar.gz piscine_cpp-119f7f96e77a2d86d692e82645dde4c2dc054052.tar.bz2 piscine_cpp-119f7f96e77a2d86d692e82645dde4c2dc054052.zip | |
cpp03, except ex04
Diffstat (limited to 'cpp03/ex04/SuperTrap.hpp')
| -rw-r--r-- | cpp03/ex04/SuperTrap.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cpp03/ex04/SuperTrap.hpp b/cpp03/ex04/SuperTrap.hpp index e69de29..ebebd18 100644 --- a/cpp03/ex04/SuperTrap.hpp +++ b/cpp03/ex04/SuperTrap.hpp @@ -0,0 +1,35 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* SuperTrap.hpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/13 17:48:31 by charles #+# #+# */ +/* Updated: 2020/04/13 18:42:28 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef SUPERTRAP_HPP +# define SUPERTRAP_HPP + +# include <string> +# include <iostream> +# include "FragTrap.hpp" +# include "NinjaTrap.hpp" + +class SuperTrap : public FragTrap, public NinjaTrap +{ +public: + SuperTrap(); + SuperTrap(std::string name); + SuperTrap(SuperTrap const& other); + void operator=(SuperTrap const& other); + ~SuperTrap(); + + void rangedAttack(std::string const& target) const; + void meleeAttack(std::string const& target) const; + +}; + +#endif |
