mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Weapon.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/24 17:16:10 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/12/24 17:24:34 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Weapon.hpp"
|
|
|
|
const std::string &Weapon::getType(void)
|
|
{
|
|
const std::string &type = this->_type;
|
|
return (type);
|
|
}
|
|
|
|
void Weapon::setType(std::string type)
|
|
{
|
|
this->_type = type;
|
|
}
|
|
|
|
Weapon::Weapon(std::string type)
|
|
{
|
|
this->_type = type;
|
|
}
|
|
|
|
Weapon::~Weapon(void) {} |