]> git.lizzy.rs Git - nothing.git/blob - src/game/level/platforms.h
(#553) Remove labels->enabled
[nothing.git] / src / game / level / platforms.h
1 #ifndef PLATFORMS_H_
2 #define PLATFORMS_H_
3
4 #include <SDL2/SDL.h>
5
6 #include "game/camera.h"
7 #include "math/rect.h"
8 #include "solid.h"
9
10 typedef struct Platforms Platforms;
11 typedef struct LineStream LineStream;
12
13 Platforms *create_platforms_from_line_stream(LineStream *line_stream);
14 void destroy_platforms(Platforms *platforms);
15
16 Solid_ref platforms_as_solid(Platforms *platforms);
17
18 int platforms_save_to_file(const Platforms *platforms,
19                            const char *filename);
20
21 int platforms_render(const Platforms *platforms,
22                      Camera *camera);
23
24 void platforms_touches_rect_sides(const Platforms *platforms,
25                                   Rect object,
26                                   int sides[RECT_SIDE_N]);
27
28 #endif  // PLATFORMS_H_