cpp01...
This commit is contained in:
32
ex03/HumanB/HumanB.hpp
Normal file
32
ex03/HumanB/HumanB.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* HumanB.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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HUMANB_HPP
|
||||
|
||||
# define HUMANB_HPP
|
||||
|
||||
# include <iostream>
|
||||
# include "../Weapon/Weapon.hpp"
|
||||
|
||||
class HumanB
|
||||
{
|
||||
private:
|
||||
std::string name;
|
||||
Weapon *weapon;
|
||||
|
||||
public:
|
||||
HumanB(const std::string &name);
|
||||
void setWeapon(Weapon &weapon);
|
||||
void attack() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user