cpp/CPP01/ex03/Weapon.cpp
2024-12-04 17:29:31 +01:00

30 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Weapon.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/20 16:52:53 by erey-bet #+# #+# */
/* Updated: 2023/04/20 17:10:47 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
#include "Weapon.hpp"
Weapon::Weapon(void) {
this->type = "";
}
Weapon::Weapon(std::string type) {
this->type = type;
}
const std::string &Weapon::getType(void) {
return (this->type);
}
void Weapon::setType(std::string type) {
this->type = type;
}