aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex06/HumanA.cpp
blob: 7e524940a6f21924b298a4249963882a4d2c149c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   HumanA.cpp                                         :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/02 16:44:03 by cacharle          #+#    #+#             */
/*   Updated: 2020/04/13 10:26:03 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "HumanA.hpp"

HumanA::HumanA(std::string name, Weapon& weapon)
    : m_name(name), m_weapon(weapon)
{
}

void HumanA::attack()
{
	std::cout << m_name << " attack with his " << m_weapon.getType() << std::endl;
}