CPP01 1.0
|
Represents a HumanA, who always has a weapon. [詳解]
#include <HumanA.hpp>
公開メンバ関数 | |
HumanA (std::string name, Weapon &weapon) | |
Constructor for the HumanA class. | |
~HumanA () | |
Destructor for the HumanA class. | |
void | attack () const |
Makes the HumanA attack. | |
Represents a HumanA, who always has a weapon.
HumanA.hpp の 26 行目に定義があります。
HumanA::HumanA | ( | std::string | name, |
Weapon & | weapon | ||
) |
HumanA::~HumanA | ( | ) |
Destructor for the HumanA class.
HumanA.cpp の 36 行目に定義があります。
void HumanA::attack | ( | ) | const |
Makes the HumanA attack.
Makes the HumanA attack with their weapon.
Prints a message indicating the HumanA's name and the type of weapon they are using.
HumanA.cpp の 43 行目に定義があります。