35 lines
567 B
C
35 lines
567 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);
|
||
|
|
||
|
|
||
|
#endif /* ndef OBS_H */
|
||
|
|