rotagon/obs.h
Frank Villaro-Dixon 7af5bc65a2 It works
2015-01-01 05:57:59 +01:00

37 lines
607 B
C

/*
** obs.h - <+DESC+>
**
** 2014 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/
#ifndef OBS_H
#define OBS_H
void
init_obs(struct s_game *g);
void
add_obstacle(struct s_game *g, struct s_obstacle o);
struct s_obstacle
create_obstacle(int thick, int face, int speed);
void
delete_obstacle(struct s_game *g, int obs);
void
draw_obstacles(struct s_game *g,
void(*drawer)(struct s_game *, int faceno, int dist, int thick, int col));
void
update_obstacles(struct s_game *g);
void
add_random_obstacle(struct s_game *g);
int
check_collisions(struct s_game *g);
#endif /* ndef OBS_H */