cpp01/ex03/Weapon.cpp

11 lines
245 B
C++
Raw Permalink Normal View History

2025-05-12 14:00:11 +02:00
#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; }