Matthew Goldsmith
/
cis441projMS2b
CIS441 Proj MS 2b
AccCar.h
- Committer:
- mwgold
- Date:
- 2019-11-10
- Revision:
- 0:ca7cb51e9fd1
- Child:
- 4:ef8866873df5
File content as of revision 0:ca7cb51e9fd1:
#ifndef _ACC_CAR_H_ #define _ACC_CAR_H_ #include "mbed.h" #include "Road.h" class Road; class AccCar{ public: int id; int position; int speed; int flag; AccCar(int id, Road* road, int flag); void set_forward_car(AccCar* car); void set_target_speed(int speed); void update(); void reset(); protected: int target_speed; int cycle; bool waited; AccCar* forward_car; Road* road; Thread* thread; }; #endif