From 8fc4395b9a61416e9bfee500e064dce7be9c8d7c Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 22 Feb 2020 05:43:57 +0100 Subject: cpp03 boilerplate --- cpp03/ex00/FragTrap.hpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 cpp03/ex00/FragTrap.hpp (limited to 'cpp03/ex00/FragTrap.hpp') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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 + +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 -- cgit