cpp01/ex03/Weapon.cpp

10 lines
245 B
C++

#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; }