cpp/cpp01/ex03/Weapon.cpp
Alexandre POMMIER 4d9723ab8a cpp05
2022-07-23 16:26:15 +02:00

34 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Weapon.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/10 21:13:13 by apommier #+# #+# */
/* Updated: 2022/07/23 12:37:01 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "Weapon.hpp"
Weapon::Weapon() : _type("words"){
return;
}
Weapon::Weapon(std::string type) : _type(type){
return;
}
Weapon::~Weapon() {
return;
}
const std::string& Weapon::getType(void) const
{
return (this->_type);
}
void Weapon::setType(std::string newType) {
_type = newType;
}