/*---------------------------------------------------------- * HTBLA-Leonding * --------------------------------------------------------- * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * Car abstract data type demo. * ---------------------------------------------------------- */ #ifndef ___CAR_H #define ___CAR_H typedef struct CarData* Car; typedef enum { AIXAM, FIAT_MULTIPLA, JEEP } CarType; typedef enum { RED, GREEN, BLUE, ORANGE, SILVER, BLACK } Color; Car get_car(CarType type); CarType get_type(Car car); Color get_color(Car car); double get_fill_level(Car car); double get_acceleration_rate(Car car); int get_speed(Car car); void set_acceleration_rate(Car car, double acceleration_rate); void accelerate(Car car); void init(); #endif