summaryrefslogtreecommitdiff
path: root/ex03/Weapon.cpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-10 12:21:03 +0100
committerDominik Kaiser2025-02-10 12:21:03 +0100
commit4b927759598b01c486063d09551303a936752956 (patch)
treeef14c78c0724c0569362566ce462614207d1ef93 /ex03/Weapon.cpp
parent5d5fe99ae155c42023b6696f719d7a537798ee41 (diff)
downloadcpp01-4b927759598b01c486063d09551303a936752956.tar.gz
cpp01-4b927759598b01c486063d09551303a936752956.zip
Add and implement Weapon class
Diffstat (limited to 'ex03/Weapon.cpp')
-rw-r--r--ex03/Weapon.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/ex03/Weapon.cpp b/ex03/Weapon.cpp
index 42bb132..e9dde06 100644
--- a/ex03/Weapon.cpp
+++ b/ex03/Weapon.cpp
@@ -6,7 +6,21 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/10 11:59:21 by dkaiser #+# #+# */
-/* Updated: 2025/02/10 11:59:21 by dkaiser ### ########.fr */
+/* Updated: 2025/02/10 12:11:07 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
+#include "Weapon.hpp"
+
+Weapon::Weapon(void)
+{}
+
+const std::string& Weapon::getType(void) const
+{
+ return this->type;
+}
+
+void Weapon::setType(const std::string &type)
+{
+ this->type = type;
+}