1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-11-22 16:53:21 +00:00
LO41/Building/Building.h

32 lines
668 B
C
Raw Normal View History

//
// Created by Antoine Bartuccio on 05/06/2018.
//
#ifndef LO41_BUILDING_H
#define LO41_BUILDING_H
#define ELEVATOR_NB 3
#define FLOORS 25
#include "../Objects.h"
#include "../List/List.h"
#include "../Elevator/Elevator.h"
#include "../CommunicationBox/CommunicationBox.h"
typedef struct o_Building {
int floors;
List * residents;
List * visitors;
CommunicationBox * box;
2018-06-06 01:00:35 +00:00
Elevator ** elevators;
PRIVATE void (*parse_residents)(_THIS(Building), char * file);
PRIVATE void (*parse_visitors)(_THIS(Building), char * file);
2018-06-06 01:00:35 +00:00
DESTRUCTOR(Building);
} Building;
Building *_init_Building(char * residents_file, char * visitors_file);
#endif //LO41_BUILDING_H