mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-10 19:59:24 +00:00
Bip, je suis l'interphone
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
//
|
||||
|
||||
#include "Visitor.h"
|
||||
#include "../SharedData/SharedData.h"
|
||||
#include <string.h>
|
||||
|
||||
GETTER(Visitor, char*, name);
|
||||
@ -10,7 +11,9 @@ GETTER(Visitor, int, id);
|
||||
|
||||
void * runnable_Visitor(void * void_this){
|
||||
Visitor *this = (Visitor*) void_this;
|
||||
SharedData * data = GET_INSTANCE(SharedData);
|
||||
printf("Bonjour, je suis %s et je souhaite rendre visite a %s\n", this->name, this->contact_name);
|
||||
printf("Bip, %s appel a l'interphone\n%s habite a l'etage %d\n", this->name, this->contact_name, data->main_building->use_call_box(data->main_building, this->contact_name));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user