d03 ex01 refondus avec meilleurs gestion de la classe de base
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user