d03 ex01 pas encore tout au point sur les constructors
This commit is contained in:
@@ -9,10 +9,9 @@ class ScavTrap : public ClapTrap {
|
||||
|
||||
public:
|
||||
|
||||
ScavTrap(); // default/parametric constructor
|
||||
ScavTrap( std::string name = ScavTrap::_dName );
|
||||
ScavTrap( ScavTrap const & src ); // copy constructor
|
||||
~ScavTrap(); // destructor
|
||||
ScavTrap(std::string name);
|
||||
|
||||
ScavTrap & operator=( ScavTrap const & rhs ); // assignement operator
|
||||
|
||||
@@ -20,7 +19,12 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
void assignValues( ScavTrap & src);
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user