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.

27 lines
793 B

#include "sherif.hpp"
using namespace std;
namespace personnage {
Sherif::Sherif(const string &nom)
: Cowboy(nom, "Tekila", "honnête")
{}
string Sherif::getNom() const {
return "Shérif " + Cowboy::getNom();
}
void Sherif::coffrerBrigand(const Brigand &brigand) {
if() { //? Comment verifier s'il est en prison ?
this->parler(brigand.getNom() + " au nom de la loi, je vous arrête !!")
brigand.seFaireEmprisonerPar(this);
}
}
void Sherif::rechercherBrigand(const Brigand &brigand) {
//? Comment l'écrire sans utiliser de find a chaque fois ?
Humain::narrateur("OYEZ OYEZ BRAVE GENS !! " + brigand.getMiseAPrix() + " $ à qui arrêtera " + brigand.getNom() + "mort ou vif !!");
}
}