Min fixes v2.0
This commit is contained in:
@@ -30,7 +30,17 @@ ScavTrap::ScavTrap(std::string name) : ClapTrap(name)
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
ScavTrap::ScavTrap(const ScavTrap &other) : ClapTrap(other) { }
|
||||
ScavTrap::ScavTrap(const ScavTrap &other) : ClapTrap(other)
|
||||
{
|
||||
|
||||
this->name = other.name;
|
||||
this->health = other.health;
|
||||
this->energy = other.energy;
|
||||
this->attackDamage = other.attackDamage;
|
||||
|
||||
std::cout << "ScavTrap copy constructor called for " << this->name << std::endl;
|
||||
|
||||
}
|
||||
|
||||
ScavTrap& ScavTrap::operator=(const ScavTrap &other)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user