]> git.lizzy.rs Git - nothing.git/blob - src/game/level/goals.h
Merge pull request #1255 from tsoding/1253
[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 "game/level/level_editor/point_layer.h"
10 #include "config.h"
11
12 typedef struct Goals Goals;
13
14 Goals *create_goals_from_point_layer(const PointLayer *point_layer);
15 void destroy_goals(Goals *goals);
16
17 Rect goals_hitbox(const Goals *goals);
18
19 int goals_render(const Goals *goals,
20                  const Camera *camera);
21 int goals_sound(Goals *goals,
22                 Sound_samples *sound_samples);
23 void goals_update(Goals *goals,
24                   float delta_time);
25 void goals_checkpoint(const Goals *goals,
26                       Player *player);
27 void goals_cue(Goals *goals,
28                const Camera *camera);
29
30 void goals_hide(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
31 void goals_show(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
32
33 #endif  // GOALS_H_