Projet d'ascenseurs intelligents multi threads pour l'UV LO41
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.

28 lines
586 B

// Created by Antoine Bartuccio on 06/06/2018.
#ifndef LO41_RESIDENT_H
#define LO41_RESIDENT_H
#include "../Objects.h"
typedef struct o_Resident {
PRIVATE int id;
PRIVATE int apartment_floor;
PRIVATE int destination;
PRIVATE int position;
PRIVATE char* name;
PUBLIC char * (*get_name)(_THIS(Resident));
PUBLIC int (*get_id)(_THIS(Resident));
PUBLIC int (*get_apartment_floor)(_THIS(Resident));
} Resident;
FRIENDLY(name, Building)
Resident *_init_Resident(int id, char * name, int apartment_floor, int destination);
#endif //LO41_RESIDENT_H