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.
18 lines
439 B
18 lines
439 B
#include "monstre.hpp"
|
|
#include <iostream> // cout, endl
|
|
|
|
using namespace std;
|
|
|
|
Monstre::Monstre(string nom, int nbPtsVie, int force)
|
|
: nom{nom}, nbPtsVie{nbPtsVie}, force{force}
|
|
{
|
|
cout << "Monstre " << nom << " créé" << endl;
|
|
}
|
|
|
|
void Monstre::rugir(string message) {
|
|
cout << "--" << nom << "(" << nbPtsVie << ")" << "-- : " << message << endl;
|
|
}
|
|
|
|
Monstre::~Monstre() {
|
|
cout << "destruction du Monstre" << nom << endl;
|
|
} |