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