Emanuel Kuflik / Mbed OS HW05

Dependencies:   TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Car.h Source File

Car.h

00001 #ifndef _CAR_H_
00002 #define _CAR_H_
00003 
00004 #include "Road.h"
00005 #include "mbed.h"
00006 
00007 class Road;
00008 
00009 class Car {
00010 public:
00011     int position;
00012     int speed;
00013     int flag;
00014     
00015     Car(int id, Road* road, int flag);
00016     void update();
00017     void reset(int position, int speed);
00018     void stop();
00019     
00020 protected:
00021     int id;
00022     int cycle;
00023     Road* road;
00024     Thread* thread; 
00025 };
00026 #endif