/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* SuperMutant.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 13:30:47 by charles #+# #+# */ /* Updated: 2020/04/14 13:34:32 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "SuperMutant.hpp" SuperMutant::SuperMutant() : Enemy(170, "Super Mutant") { std::cout << "Gaaah. Me want smash heads!" << std::endl; } SuperMutant::SuperMutant(SuperMutant const& other) { std::cout << "Gaaah. Me want smash heads!" << std::endl; *this = other; } void SuperMutant::operator=(SuperMutant const& other) { Enemy::operator=(other); } SuperMutant::~SuperMutant() { std::cout << "Aaargh..." << std::endl; } void SuperMutant::takeDamage(int amount) { Enemy::takeDamage(amount - 3); }