]> git.lizzy.rs Git - nothing.git/blob - src/game/level/goals.h
Remove Lt from PointLayer
[nothing.git] / src / game / level / goals.h
1 #ifndef GOALS_H_
2 #define GOALS_H_
3
4 #include <SDL.h>
5
6 #include "game/camera.h"
7 #include "game/level/player.h"
8 #include "game/sound_samples.h"
9 #include "config.h"
10
11 typedef struct Goals Goals;
12
13 Goals *create_goals_from_point_layer(const PointLayer *point_layer);
14 void destroy_goals(Goals *goals);
15
16 Rect goals_hitbox(const Goals *goals);
17
18 int goals_render(const Goals *goals,
19                  const 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_checkpoint(const Goals *goals,
25                       Player *player);
26 void goals_cue(Goals *goals,
27                const Camera *camera);
28
29 void goals_hide(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
30 void goals_show(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
31
32 #endif  // GOALS_H_