feat(ex03): it works
This commit is contained in:
parent
8f7b9c3068
commit
28784b50f0
9 changed files with 153 additions and 0 deletions
8
ex03/HumanA.cpp
Normal file
8
ex03/HumanA.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "HumanA.hpp"
|
||||
#include <iostream>
|
||||
|
||||
HumanA::HumanA(std::string name, Weapon &weapon) : weapon(weapon), name(name) {}
|
||||
|
||||
void HumanA::attack(void) {
|
||||
std::cout << name << " attacks with their " << weapon.getType() << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue