Files
42_INT_09_piscine_cpp/d03/ex03/ScavTrap.cpp
2022-02-19 10:03:39 +01:00

31 lines
536 B
C++

#include "ScavTrap.hpp"
ScavTrap::ScavTrap( std::string name ) : ClapTrap(name) {
_class = "ScavTrap";
_hit = 100;
_energy = 50;
_attack = 20;
std::cout << _class << " " << ScavTrap::_name << " created with number " << _number << "\n";
return;
}
/*
* destructor
*/
ScavTrap::~ScavTrap( void ) {
std::cout << _class << " " << ScavTrap::_name << " destructed\n";
return;
}
/*
* special capacity
*/
void ScavTrap::guardGate() {
std::cout << _class << " " << ScavTrap::_name << " entered special mode Gate Keeper\n";
}