save work of day d03 ex03 l'ordi plante

This commit is contained in:
Hugo LAMY
2022-02-22 22:18:43 +01:00
parent 8c9d50dd68
commit b24335a78e
12 changed files with 278 additions and 159 deletions

View File

@@ -5,15 +5,27 @@
#include <string>
#include "ClapTrap.hpp"
class ScavTrap : virtual public ClapTrap {
class ScavTrap : public virtual ClapTrap {
public:
ScavTrap(std::string name);
~ScavTrap();
ScavTrap( std::string name = ScavTrap::_dName );
ScavTrap( ScavTrap const & src ); // copy constructor
~ScavTrap(); // destructor
ScavTrap & operator=( ScavTrap const & rhs ); // assignement operator
void guardGate();
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