]> git.lizzy.rs Git - nothing.git/blob - src/game/level/goals.h
(#553) Remove labels->enabled
[nothing.git] / src / game / level / goals.h
1 #ifndef GOALS_H_
2 #define GOALS_H_
3
4 #include <SDL2/SDL.h>
5
6 #include "game/camera.h"
7 #include "game/level/player.h"
8 #include "game/sound_samples.h"
9
10 typedef struct Goals Goals;
11 typedef struct LineStream LineStream;
12
13 Goals *create_goals_from_line_stream(LineStream *line_stream);
14 void destroy_goals(Goals *goals);
15
16 Rect goals_hitbox(const Goals *goals);
17
18 int goals_render(const Goals *goals,
19                  Camera *camera);
20 int goals_sound(Goals *goals,
21                 Sound_samples *sound_samples);
22 void goals_update(Goals *goals,
23                   float delta_time);
24 void goals_hide_from_player(Goals *goals,
25                             Rect player_hitbox);
26 void goals_checkpoint(const Goals *goals,
27                       Player *player);
28 void goals_cue(Goals *goals,
29                const Camera *camera);
30
31 void goals_hide(Goals *goals, const char *id);
32 void goals_show(Goals *goals, const char *id);
33
34 #endif  // GOALS_H_