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.
23 lines
478 B
23 lines
478 B
#include "monstre.hpp"
|
|
#include "chevalier.hpp"
|
|
|
|
void testMonstre(void) {
|
|
Monstre globulus{"Globulus", 15, 5};
|
|
Monstre nemo{"Nemo"};
|
|
globulus.rugir("Tremblez!");
|
|
nemo.rugir("Vous allez trépasser!");
|
|
}
|
|
|
|
void testChevalier(void) {
|
|
Chevalier arthur{"Sir Arthur", 160, 90};
|
|
Chevalier inconnu{16,50};
|
|
arthur.parler("Hors de ma vu !!!");
|
|
inconnu.parler("Je suis un inconnu !!!");
|
|
}
|
|
|
|
int main(void){
|
|
// test();
|
|
testChevalier();
|
|
return 0;
|
|
}
|