ClapTrap default constructor message fixed
This commit is contained in:
@@ -16,7 +16,9 @@ ClapTrap::ClapTrap() :
|
|||||||
name("(NULL)"), health(10),
|
name("(NULL)"), health(10),
|
||||||
energy(10), attackDamage(0)
|
energy(10), attackDamage(0)
|
||||||
{
|
{
|
||||||
std::cout << "Default constructor called" << std::endl;
|
std::cout << "ClapTrap default constructor called " << this->name
|
||||||
|
<< std::endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ClapTrap::ClapTrap(std::string name) :
|
ClapTrap::ClapTrap(std::string name) :
|
||||||
|
|||||||
Binary file not shown.
BIN
ex00/claptrap
BIN
ex00/claptrap
Binary file not shown.
BIN
ex00/main.o
BIN
ex00/main.o
Binary file not shown.
@@ -16,7 +16,8 @@ ClapTrap::ClapTrap() :
|
|||||||
name("(NULL)"), health(10),
|
name("(NULL)"), health(10),
|
||||||
energy(10), attackDamage(0)
|
energy(10), attackDamage(0)
|
||||||
{
|
{
|
||||||
std::cout << "Default constructor called" << std::endl;
|
std::cout << "ClapTrap default constructor called " << this->name
|
||||||
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
ClapTrap::ClapTrap(std::string name) :
|
ClapTrap::ClapTrap(std::string name) :
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ ClapTrap::ClapTrap() :
|
|||||||
name("(NULL)"), health(10),
|
name("(NULL)"), health(10),
|
||||||
energy(10), attackDamage(0)
|
energy(10), attackDamage(0)
|
||||||
{
|
{
|
||||||
std::cout << "Default constructor called" << std::endl;
|
std::cout << "ClapTrap default constructor called " << this->name
|
||||||
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
ClapTrap::ClapTrap(std::string name) :
|
ClapTrap::ClapTrap(std::string name) :
|
||||||
|
|||||||
Reference in New Issue
Block a user