1
0
This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_01/ex03/Weapon.cpp

24 lines
1.1 KiB
C++
Raw Permalink Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Weapon.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 19:23:35 by adjoly #+# #+# */
/* Updated: 2024/11/09 18:46:35 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Weapon.hpp"
void Weapon::setType(std::string newType) {
this->_type = newType;
}
const std::string &Weapon::getType(void) {
return (this->_type);
}
Weapon::Weapon(std::string type) : _type(type) { }