d03 ex01 refondus avec meilleurs gestion de la classe de base

This commit is contained in:
Hugo LAMY
2022-02-21 15:45:38 +01:00
parent 8918b348e0
commit 7a9435b869
16 changed files with 683 additions and 73 deletions

View File

@@ -10,7 +10,7 @@ class ClapTrap {
public:
ClapTrap( std::string name );
ClapTrap( std::string name = ClapTrap::_dName );
ClapTrap( ClapTrap const & src ); // copy constructor
~ClapTrap( void ); // destructor
@@ -38,13 +38,18 @@ protected:
void _increaseNumber();
ClapTrap( void ); // default/parametric constructor
private:
void assignValues(ClapTrap & src);
static int _totalNumber;
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