// simulation.h for traffic simulation #ifndef SIMULATION_H_ #define SIMULATION_H_ #include #include "delay.h" #include "x_plot_d.h" // or some other plot package //float fabs(float a) //{ // return a>=0.0?a:(-a); //} // extern int CLK_PER_SEC; // speed control, set in main() extern float my_scale; // user must scale simulation to screen/window enum direction { north, east, south, west, reset }; enum signal_state { green, yellow, red , none, stop }; void initialize(void); int unique_id(void); void get_offsets(direction moving, float &x_offset, float &y_offset); // end simulation.h #endif // SIMULATION_H_