]> git.lizzy.rs Git - nothing.git/blob - src/goals.h
(#118) Make the goal play sound when it gets into view port
[nothing.git] / src / goals.h
1 #ifndef GOALS_H_
2 #define GOALS_H_
3
4 #include <SDL2/SDL.h>
5 #include "./camera.h"
6 #include "./sound_medium.h"
7
8 typedef struct goals_t goals_t;
9
10 goals_t *create_goals_from_stream(FILE *stream);
11 void destroy_goals(goals_t *goals);
12
13 rect_t goals_hitbox(const goals_t *goals);
14
15 int goals_render(const goals_t *goals,
16                  SDL_Renderer *renderer,
17                  const camera_t *camera);
18 int goals_sound(goals_t *goals,
19                 sound_medium_t *sound_medium);
20 void goals_update(goals_t *goals,
21                   Uint32 delta_time);
22 void goals_hide(goals_t *goals,
23                 rect_t player_hitbox);
24 void goals_cue(goals_t *goals,
25                SDL_Renderer *renderer,
26                const camera_t *camera);
27
28 #endif  // GOALS_H_