]> git.lizzy.rs Git - nothing.git/blob - src/game/level/boxes.h
(#783) Remove dependency on the player from boxes
[nothing.git] / src / game / level / boxes.h
1 #ifndef BOXES_H_
2 #define BOXES_H_
3
4 #include "game/camera.h"
5 #include "game/level/platforms.h"
6 #include "lava.h"
7 #include "ebisp/expr.h"
8
9 typedef struct Boxes Boxes;
10 typedef struct Player Player;
11 typedef struct LineStream LineStream;
12 typedef struct Player Player;
13
14 Boxes *create_boxes_from_line_stream(LineStream *line_stream, RigidBodies *rigid_bodies);
15 void destroy_boxes(Boxes *boxes);
16
17 int boxes_render(Boxes *boxes, Camera *camera);
18 int boxes_update(Boxes *boxes, float delta_time);
19
20 void boxes_float_in_lava(Boxes *boxes, Lava *lava);
21
22 int boxes_add_box(Boxes *boxes, Rect rect, Color color);
23
24 struct EvalResult
25 boxes_send(Boxes *boxes, Gc *gc, struct Scope *scope, struct Expr path);
26
27 #endif  // BOXES_H_