summaryrefslogtreecommitdiff
path: root/ex03/HumanB.hpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-10 12:32:47 +0100
committerDominik Kaiser2025-02-10 12:32:47 +0100
commit4b7e380d5f718fe557ef6ae068d7896620bc24f2 (patch)
tree3ef17c356afb1e742ce3227cf76c8e7338668e0c /ex03/HumanB.hpp
parent4b927759598b01c486063d09551303a936752956 (diff)
downloadcpp01-4b7e380d5f718fe557ef6ae068d7896620bc24f2.tar.gz
cpp01-4b7e380d5f718fe557ef6ae068d7896620bc24f2.zip
Add HumanA and HumanB classes
Diffstat (limited to 'ex03/HumanB.hpp')
-rw-r--r--ex03/HumanB.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/ex03/HumanB.hpp b/ex03/HumanB.hpp
index d8ccdc8..ce4edbd 100644
--- a/ex03/HumanB.hpp
+++ b/ex03/HumanB.hpp
@@ -6,11 +6,25 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/10 12:00:55 by dkaiser #+# #+# */
-/* Updated: 2025/02/10 12:00:58 by dkaiser ### ########.fr */
+/* Updated: 2025/02/10 12:29:43 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef HUMANB_H_
#define HUMANB_H_
+#include "Weapon.hpp"
+#include <string>
+
+class HumanB
+{
+ public:
+ HumanB(const std::string &name);
+ void attack(void) const;
+ void setWeapon(Weapon *weapon);
+ private:
+ Weapon* weapon;
+ std::string name;
+};
+
#endif