d03 ex01 debut

This commit is contained in:
Hugo LAMY
2022-02-17 19:59:25 +01:00
parent 1640b9a15d
commit 8cbff6a7c5
8 changed files with 383 additions and 1 deletions

22
d03/ex01/ScavTrap.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include "ScavTrap.hpp"
ScavTrap::ScavTrap( std::string name ) {
_name = name;
_hit = 100;
_energy = 50;
_attack = 20;
std::cout << "scavtrap " << _name << " created\n";
return;
}
/*
* destructor
*/
ScavTrap::~ScavTrap( void ) {
std::cout << "scavtrap " << _name << " destructed\n";
return;
}