/ CPP_Modules / CPP_Module_01 / ex03 / HumanB.hpp
HumanB.hpp
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   HumanB.hpp                                         :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/07/25 21:19:48 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/07/25 22:28:13 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #pragma once
14  #ifndef __HUMANB_H__
15  #define __HUMANB_H__
16  
17  #include "Weapon.hpp"
18  
19  class	HumanB
20  {
21  	public:
22  		HumanB(const std::string& name);
23  		void	setWeapon(Weapon& weapon);
24  		void	attack(void);
25  
26  	private:
27  		Weapon*				_weapon;
28  		const std::string	_name;
29  };
30  
31  #endif