LO41/Building/Building.h

30 lines
540 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
2018-06-06 01:00:35 +00:00
#define FLOORS 10
#include "../Objects.h"
#include "../List/List.h"
#include "../Elevator/Elevator.h"
#include "../CommunicationBox/CommunicationBox.h"
typedef struct o_Building {
int floors;
List * residents;
CommunicationBox * box;
2018-06-06 01:00:35 +00:00
Elevator ** elevators;
SYNCHRONIZE Elevator ** (*get_elevators)(_THIS(Building));
DESTRUCTOR(Building);
} Building;
2018-06-06 01:00:35 +00:00
Building *_init_Building();
#endif //LO41_BUILDING_H