24 lines
1.1 KiB
C++
24 lines
1.1 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Weapon.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/04 19:23:35 by adjoly #+# #+# */
|
|
/* Updated: 2024/11/05 17:57:08 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Weapon.hpp"
|
|
|
|
void Weapon::setType(std::string newType) {
|
|
this->_type = newType;
|
|
}
|
|
|
|
std::string Weapon::getType(void) {
|
|
return (this->_type);
|
|
}
|
|
|
|
Weapon::Weapon(std::string type) : _type(type) { }
|