aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01/AWeapon.hpp
blob: cfd803c173efdb21554bc869784b0bfdccc6c4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   AWeapon.hpp                                        :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/14 11:22:06 by charles           #+#    #+#             */
/*   Updated: 2020/11/17 08:53:43 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef AWEAPON_HPP
# define AWEAPON_HPP

# include <string>

class AWeapon
{
public:
    AWeapon(AWeapon const& other);
    AWeapon& operator=(AWeapon const& other);
    virtual ~AWeapon();

    AWeapon(std::string const& name, int apcost, int damage);
    std::string const& getName() const;
    int getAPCost() const;
    int getDamage() const;
    virtual void attack() const = 0;

protected:
    std::string m_name;
    int         m_apcost;
    int         m_damage;

private:
    AWeapon();
};

#endif