rotagon/obs.h
Frank Villaro-Dixon a3ec028aec patterns
2015-01-01 11:40:34 +01:00

38 lines
569 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, int dist);
void
delete_obstacle(struct s_game *g, int obs);
void
draw_obstacles(struct s_game *g);
void
update_obstacles(struct s_game *g);
void
add_random_obstacle(struct s_game *g);
int
check_collisions(struct s_game *g);
int
get_max_obs_dist(struct s_game *g);
#endif /* ndef OBS_H */