feat: finishing the exercice 02 & 03 from the module 01

This commit is contained in:
Raphael 2024-11-05 14:50:42 +01:00
parent a6ec8890cf
commit 2b197d8d05
11 changed files with 364 additions and 68 deletions

33
cpp01/ex03/Weapon.cpp Normal file
View file

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Weapon.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 13:28:55 by rparodi #+# #+# */
/* Updated: 2024/11/05 13:34:38 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Weapon.hpp"
Weapon::Weapon(std::string type)
{
_type = type;
}
Weapon::~Weapon()
{
}
std::string Weapon::getType()
{
return (_type);
}
void Weapon::setType(std::string type)
{
_type = type;
}