the following code is the header file for the game/2d engine I'm making. When I build my program I get the error message that in the first function definition for collision() that the person struct is being redefined. I looked to make sure my function definition was right, and even tried looking in the K&R book. Maybe I'm getting too tired, but I couldnt find anything that would help the error message make sense of what I did wrong.
Code:#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
#define ALLEGRO_USE_CONSOLE
#define BULLET_VEL 3
#define DEAD 0
#define DYING -1
#define ALIVE 1
#define LEFT 0
#define RIGHT 1
#define PBULLETS 8
#define EBULLETS 32
struct person{
int x,y;
int width, height;
float x_vel, y_vel;
int alive;
int direction;
BITMAP *sprite;
};
struct bullet{
int x,y;
int width, height;
float vel;
bool exists;
int num_bullets;
};
bool collision(struct* person,struct* person);
bool fire_bullet(struct* person,struct* bullet);
void frames_per_sec(void);
bool hit(struct* person);
void update_bullets(void);