cis441 project milestone 1a
Embed:
(wiki syntax)
Show/hide line numbers
Intersection.h
00001 #ifndef _INTERSECTION_H_ 00002 #define _INTERSECTION_H_ 00003 00004 #include "mbed.h" 00005 00006 class Intersection { 00007 public: 00008 int queue[2]; 00009 int intersection_car; 00010 bool occupied; 00011 int road1Car; 00012 int road2Car; 00013 00014 Intersection(); 00015 void preChecks(); 00016 void intendToEnter(int carId, int roadId); 00017 int attemptEnterIntersection(int carId); 00018 void leaveIntersection(); 00019 }; 00020 #endif 00021
Generated on Wed Jul 20 2022 19:41:08 by
1.7.2
