diff options
Diffstat (limited to 'cpp01/ex06/Weapon.cpp')
| -rw-r--r-- | cpp01/ex06/Weapon.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cpp01/ex06/Weapon.cpp b/cpp01/ex06/Weapon.cpp new file mode 100644 index 0000000..86738a8 --- /dev/null +++ b/cpp01/ex06/Weapon.cpp @@ -0,0 +1,28 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* Weapon.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/02 16:36:23 by cacharle #+# #+# */ +/* Updated: 2020/02/02 16:56:48 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "Weapon.hpp" + +Weapon::Weapon(std::string type) +{ + this->type = type; +} + +const std::string& Weapon::getType() +{ + return &type; +} + +void Weapon::setType(const std::string& type) +{ + this->type = type; +} |
