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.
24 lines
671 B
24 lines
671 B
#include "chevalier.hpp"
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
Chevalier::Chevalier(string titre, int bouclier, int arme)
|
|
: titre{titre}, ptsDeVie{10}, puissArme{arme}, puissBouclier{bouclier}
|
|
{
|
|
cout << "Naissance de " << titre << endl;
|
|
}
|
|
|
|
void Chevalier::parler(string message) {
|
|
cout << "**" << titre << "(" << ptsDeVie << "," << puissArme << "," << puissBouclier << ")** : " << message << endl;
|
|
}
|
|
|
|
Chevalier::~Chevalier() {
|
|
cout << "disparition de " << titre << endl;
|
|
}
|
|
|
|
Chevalier::Chevalier(int bouclier, int arme)
|
|
: titre{"Mr Incoonu"}, ptsDeVie{10}, puissArme{arme}, puissBouclier{bouclier}
|
|
{
|
|
cout << "Naissance de " << titre << endl;
|
|
} |