You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cpp_stl/Personnage/Personnage.h

29 lines
482 B

//
// Created by draia on 27/01/23.
//
#ifndef CPP_STL_PERSONNAGE_H
#define CPP_STL_PERSONNAGE_H
#include <string>
class Personnage
{
private:
std::string m_name;
int m_hp;
public:
virtual void parler(const std::string &message) const;
const std::string &name() const;
const int &hp() const;
explicit Personnage(const std::string &name = "FNU",
const int &hp = 10);
virtual ~Personnage();
};
#endif //CPP_STL_PERSONNAGE_H