1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-15 22:29:24 +00:00

refactored printing

This commit is contained in:
Aethor
2018-06-22 01:50:27 +02:00
parent 3e73835b81
commit 3bcb7faf66
4 changed files with 14 additions and 16 deletions

View File

@ -20,8 +20,8 @@ void * runnable_Visitor(void * void_this){
passenger->visitor = this;
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, (this->destination = data->use_call_box(data, this->contact_name)));
printf("Visiteur %s : Je souhaite rendre visite a %s\n", this->name, this->contact_name);
printf("Visiteur %s : J'apelle à l'interphone\nVisiteur %s : J'apprends que %s habite à l'étage %d\n", this->name, this->name, this->contact_name, (this->destination = data->use_call_box(data, this->contact_name)));
data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger);
return NULL;
}