diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-22 05:43:57 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-22 05:43:57 +0100 |
| commit | 8fc4395b9a61416e9bfee500e064dce7be9c8d7c (patch) | |
| tree | af6e1ebafaa0fbfbc7cde1865573ca37f48ca29f /cpp03/ex00/FragTrap.hpp | |
| parent | a5a197590e45494dc31f0d2fc8fb13194b3975c9 (diff) | |
| download | piscine_cpp-8fc4395b9a61416e9bfee500e064dce7be9c8d7c.tar.gz piscine_cpp-8fc4395b9a61416e9bfee500e064dce7be9c8d7c.tar.bz2 piscine_cpp-8fc4395b9a61416e9bfee500e064dce7be9c8d7c.zip | |
cpp03 boilerplate
Diffstat (limited to 'cpp03/ex00/FragTrap.hpp')
| -rw-r--r-- | cpp03/ex00/FragTrap.hpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp03/ex00/FragTrap.hpp b/cpp03/ex00/FragTrap.hpp new file mode 100644 index 0000000..200b412 --- /dev/null +++ b/cpp03/ex00/FragTrap.hpp @@ -0,0 +1,43 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* FragTrap.hpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/22 05:17:16 by cacharle #+# #+# */ +/* Updated: 2020/02/22 05:40:56 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FRAGTRAP_CPP +# define FRAGTRAP_CPP + +# include <string> + +class FragTrap +{ + FragTrap(); + FragTrap(FragTrap const & other); + FragTrap operator=(FragTrap const & other); + ~FragTrap(); + + rangedAttack(std::string const & target); + meleeAttack(std::string const & target); + takeDamage(unsigned int amount); + beRepaired(unsigned int amount); + vaulthunter_dot_exe(std::string const & target); + + protected: + std::string name; + int hitPoints; + int maxHitPoints; + int energyPoints; + int maxEnergyPoints; + int level; + int meleeAttackDamage; + int rangedAttackDamage; + int armorDamageReduction; +}; + +#endif |
