rotagon/obs.h

39 lines
569 B
C
Raw Normal View History

2015-01-01 04:32:07 +00:00
/*
** 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
2015-01-01 10:40:34 +00:00
create_obstacle(int thick, int face, int speed, int dist);
2015-01-01 04:32:07 +00:00
void
delete_obstacle(struct s_game *g, int obs);
void
2015-01-01 05:19:10 +00:00
draw_obstacles(struct s_game *g);
2015-01-01 04:32:07 +00:00
void
update_obstacles(struct s_game *g);
void
add_random_obstacle(struct s_game *g);
2015-01-01 04:57:59 +00:00
int
check_collisions(struct s_game *g);
2015-01-01 04:32:07 +00:00
2015-01-01 10:40:34 +00:00
int
get_max_obs_dist(struct s_game *g);
2015-01-01 04:32:07 +00:00
#endif /* ndef OBS_H */