Emanuel Kuflik / Mbed OS HW05

Dependencies:   TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Road.h Source File

Road.h

00001 #ifndef _ROAD_H_
00002 #define _ROAD_H_
00003 
00004 #include "mbed.h"
00005 #include "Car.h"
00006 #include "AccCar.h"
00007 
00008 class Car;
00009 class AccCar;
00010 
00011 
00012 class Road {
00013 public:
00014     EventFlags go_flags;
00015     EventFlags done_flags;
00016 
00017     Road();
00018     void add_car(Car* car);
00019     void add_acc_car(AccCar* car);
00020     void let_cars_update();
00021     void wait_for_car_update();
00022         
00023     
00024 private:
00025     Car* car1;
00026     AccCar* car2;
00027     
00028     int active_cars;
00029 };
00030 #endif