diff options
Diffstat (limited to 'cpp01/ex06/Weapon.hpp')
| -rw-r--r-- | cpp01/ex06/Weapon.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp01/ex06/Weapon.hpp b/cpp01/ex06/Weapon.hpp index ea9b738..d9ad476 100644 --- a/cpp01/ex06/Weapon.hpp +++ b/cpp01/ex06/Weapon.hpp @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/02 16:34:31 by cacharle #+# #+# */ -/* Updated: 2020/02/02 16:56:40 by cacharle ### ########.fr */ +/* Updated: 2020/04/13 10:16:46 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,13 +17,13 @@ class Weapon { - private: - std::string type; +public: + Weapon(std::string t); + const std::string& getType() const; + void setType(const std::string& t); - public: - Weapon(std::string type); - const std::string& getType(); - void setType(const std::string& type); +private: + std::string type; // subject want litteraly `type` }; #endif |
