/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Character.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 13:42:25 by charles #+# #+# */ /* Updated: 2020/04/14 14:09:51 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CHARACTER_HPP # define CHARACTER_HPP # include # include # include "AWeapon.hpp" # include "Enemy.hpp" class Character { public: Character(Character const& other); void operator=(Character const& other); ~Character(); Character(std::string const& name); void recoverAP(); void equip(AWeapon *weapon); void attack(Enemy *enemy); std::string const& getName() const; int getAP() const; AWeapon* getWeapon() const; private: Character(); std::string m_name; int m_ap; AWeapon *m_weapon; }; std::ostream& operator<<(std::ostream& out, Character const& c); #endif