d03 code refonte ex00 01 et 02

This commit is contained in:
Hugo LAMY
2022-02-22 19:05:24 +01:00
parent 088a54d036
commit 8c9d50dd68
12 changed files with 349 additions and 330 deletions

View File

@@ -8,12 +8,23 @@
class FragTrap : public ClapTrap {
public:
FragTrap( std::string name = FragTrap::_dName );
FragTrap( FragTrap const & src ); // copy constructor
~FragTrap(); // destructor
FragTrap(std::string name);
~FragTrap( void );
FragTrap & operator=( FragTrap const & rhs ); // assignement operator
void highFivesGuys();
private:
static const std::string _dName;
static const std::string _dClass;
static const int _dHit;
static const int _dEnergy;
static const int _dAttack;
static const int _dNumber;
};
#endif