cpp01/ex03/Weapon.cpp

25 lines
245 B
C++

#include "Weapon.hpp"
Weapon::Weapon()
{
}
Weapon::Weapon(std::string type)
{
setType(type);
}
Weapon::~Weapon()
{
}
void Weapon::setType(std::string type)
{
_type = type;
}
const std::string &Weapon::getType() const
{
return (_type);
}