cpp01...
This commit is contained in:
26
ex03/Weapon/Weapon.cpp
Normal file
26
ex03/Weapon/Weapon.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Weapon.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 02:27:27 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 02:28:09 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Weapon.hpp"
|
||||
|
||||
Weapon::Weapon(const std::string &type) : type(type) {}
|
||||
|
||||
const std::string& Weapon::getType() const
|
||||
{
|
||||
return (this->type);
|
||||
}
|
||||
|
||||
void Weapon::setType(const std::string &str)
|
||||
{
|
||||
this->type = str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user