30 lines
1.1 KiB
C++
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;
|
|
}
|