#ifndef BALL_H #define BALL_H #include "board.h" static const float BALL_START_X_NORMAL = 40; static const float BALL_START_Y_NORMAL = 12; struct ball { float x; float y; float speed; float dir; struct ball *next; }; struct ball *new_ball(float x, float y, float speed, float dir); void free_ball(struct ball *b); void clear_ball(struct ball *b); void update_ball(struct ball *b); void draw_ball(struct ball *b); #endif