feat(ex03): it works
This commit is contained in:
parent
8f7b9c3068
commit
28784b50f0
9 changed files with 153 additions and 0 deletions
10
ex03/Weapon.cpp
Normal file
10
ex03/Weapon.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "Weapon.hpp"
|
||||
|
||||
Weapon::Weapon(std::string type) { this->type = type; }
|
||||
|
||||
const std::string &Weapon::getType(void) {
|
||||
const std::string &retvalue = type;
|
||||
return retvalue;
|
||||
}
|
||||
|
||||
void Weapon::setType(std::string type) { this->type = type; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue