feat: adding the operator '='

This commit is contained in:
Raphael 2025-02-10 11:13:57 +01:00
parent a909970d76
commit 2fc4472427
6 changed files with 37 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/10 14:54:21 by rparodi #+# #+# */
/* Updated: 2025/02/10 10:24:18 by rparodi ### ########.fr */
/* Updated: 2025/02/10 11:10:09 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,6 +20,7 @@ class ClapTrap {
ClapTrap();
ClapTrap(ClapTrap const &copy);
ClapTrap(std::string name);
ClapTrap& operator=(ClapTrap &assign);
~ClapTrap();
void attack(const std::string& target);
void takeDamage(unsigned int amount);