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.cpp

31 lines
493 B

//
// Created by draia on 27/01/23.
//
#include <iostream>
#include "Personnage.h"
using namespace std;
void Personnage::parler(const string &message) const
{
cout << m_name << ":\n\t" << message << endl;
}
Personnage::Personnage(const std::string &name,
const int &hp)
: m_name(name), m_hp(hp)
{}
const string &Personnage::name() const
{
return m_name;
}
const int &Personnage::hp() const
{
return m_hp;
}
Personnage::~Personnage()
= default;