
not running
Car.h
- Committer:
- hyan99
- Date:
- 2019-12-11
- Revision:
- 2:16b3bd337db2
- Parent:
- 0:3b4906b8a747
File content as of revision 2:16b3bd337db2:
#ifndef _CAR_H_ #define _CAR_H_ #include "Road.h" #include "mbed.h" class Road; class Car { public: int position; int speed; int flag; Car(int id, Road* road, int flag); void update(); void reset(int position, int speed); void stop(); protected: int id; int cycle; Road* road; Thread* thread; }; #endif