You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
519 B

#ifndef CARS_H
#define CARS_H
#define MAX_CARS 60
struct car
char tag[4];
char base[4];
char cls[20];
char name[20];
float maxrpm;
float maxfuel;
float maxboost;
float maxspeed;
int intake;
int weight;
float dist;
float time;
float cons;
extern struct car s_cars[MAX_CARS];
void init_cars(void);
int get_car(const char tag[4], struct car *car);
const char *find_car(const char tag[4], int intake, int weight);
void update_car(int carnum, float dist, float time, float cons);
#endif /* CARS_H */