d02 ex02 multiplications sans float et sans long pbm abandon
This commit is contained in:
@@ -10,7 +10,6 @@ class ClapTrap {
|
||||
|
||||
public:
|
||||
|
||||
ClapTrap( void ); // default/parametric constructor
|
||||
ClapTrap( std::string name ); // default/parametric constructor
|
||||
ClapTrap( ClapTrap const & src ); // copy constructor
|
||||
~ClapTrap( void ); // destructor
|
||||
@@ -28,7 +27,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
std::string _name;
|
||||
std::string const _name;
|
||||
std::string _class;
|
||||
int _hit;
|
||||
int _energy;
|
||||
@@ -40,6 +39,8 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
ClapTrap( void ); // default/parametric constructor
|
||||
|
||||
static int _totalNumber;
|
||||
|
||||
};
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
ScavTrap::ScavTrap( std::string name ) : ClapTrap(name) {
|
||||
|
||||
_name = name;
|
||||
_class = "ScavTrap";
|
||||
_hit = 100;
|
||||
_energy = 50;
|
||||
|
||||
BIN
d03/ex01/robots
BIN
d03/ex01/robots
Binary file not shown.
Reference in New Issue
Block a user