2018-06-06 18:29:02 +00:00
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
|
2018-06-10 23:58:52 +00:00
|
|
|
PUBLIC void * (*runnable)(void * void_this);
|
2018-06-06 18:29:02 +00:00
|
|
|
PUBLIC char * (*get_name)(_THIS(Resident));
|
|
|
|
PUBLIC int (*get_id)(_THIS(Resident));
|
|
|
|
PUBLIC int (*get_apartment_floor)(_THIS(Resident));
|
|
|
|
|
|
|
|
DESTRUCTOR(Resident);
|
|
|
|
} Resident;
|
|
|
|
|
|
|
|
FRIENDLY(name, Building)
|
|
|
|
|
2018-06-10 15:57:39 +00:00
|
|
|
Resident *_init_Resident(int id, char * name, int apartment_floor, int destination);
|
2018-06-06 18:29:02 +00:00
|
|
|
|
|
|
|
#endif //LO41_RESIDENT_H
|