/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* TacticalMarine.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 15:31:43 by charles #+# #+# */ /* Updated: 2020/11/12 15:37:41 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "TacticalMarine.hpp" TacticalMarine::TacticalMarine() { std::cout << "Tactical Marine ready for battle!" << std::endl; } TacticalMarine::TacticalMarine(TacticalMarine const& other) { *this = other; } TacticalMarine& TacticalMarine::operator=(TacticalMarine const& other) { (void)other; return *this; } TacticalMarine::~TacticalMarine() { std::cout << "Aaargh..." << std::endl; } ISpaceMarine* TacticalMarine::clone() const { ISpaceMarine* cloned = new TacticalMarine(); *cloned = *this; return cloned; } void TacticalMarine::battleCry() const { std::cout << "For the holy PLOT!" << std::endl; } void TacticalMarine::rangedAttack() const { std::cout << "* attacks with a botler *" << std::endl; } void TacticalMarine::meleeAttack() const { std::cout << "* attacks with a chainsword *" << std::endl; }