]> git.lizzy.rs Git - nothing.git/blob - src/goals.h
(#110) Turn seen goals into checkpoints
[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 #include "./player.h"
8
9 typedef struct goals_t goals_t;
10
11 goals_t *create_goals_from_stream(FILE *stream);
12 void destroy_goals(goals_t *goals);
13
14 rect_t goals_hitbox(const goals_t *goals);
15
16 int goals_render(const goals_t *goals,
17                  SDL_Renderer *renderer,
18                  const camera_t *camera);
19 int goals_sound(goals_t *goals,
20                 sound_medium_t *sound_medium);
21 void goals_update(goals_t *goals,
22                   float delta_time);
23 void goals_hide(goals_t *goals,
24                 rect_t player_hitbox);
25 void goals_checkpoint(const goals_t *goals,
26                       player_t *player);
27 void goals_cue(goals_t *goals,
28                SDL_Renderer *renderer,
29                const camera_t *camera);
30
31 #endif  // GOALS_H_