mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-16 06:39:26 +00:00
La structure du projet avance, on peut maintenant charger les résidents et les visiteurs
This commit is contained in:
28
Resident/Resident.h
Normal file
28
Resident/Resident.h
Normal file
@ -0,0 +1,28 @@
|
||||
//
|
||||
// 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));
|
||||
|
||||
DESTRUCTOR(Resident);
|
||||
} Resident;
|
||||
|
||||
FRIENDLY(name, Building)
|
||||
|
||||
Resident *_init_Resident(int id, char * name, int apartment_floor);
|
||||
|
||||
#endif //LO41_RESIDENT_H
|
Reference in New Issue
Block a user