]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/boxes.h
(#802) TODO
[nothing.git] / src / game / level / boxes.h
index c413164b1bda14df17d9e4f885fcfb8194e5fd6b..15149e1f6b10d6dd113ed5500b897bf9340132c7 100644 (file)
@@ -4,12 +4,14 @@
 #include "game/camera.h"
 #include "game/level/platforms.h"
 #include "lava.h"
+#include "ebisp/expr.h"
 
 typedef struct Boxes Boxes;
 typedef struct Player Player;
-typedef struct Physical_world Physical_world;
+typedef struct LineStream LineStream;
+typedef struct Player Player;
 
-Boxes *create_boxes_from_stream(FILE *stream);
+Boxes *create_boxes_from_line_stream(LineStream *line_stream, RigidBodies *rigid_bodies);
 void destroy_boxes(Boxes *boxes);
 
 int boxes_render(Boxes *boxes, Camera *camera);
@@ -17,7 +19,10 @@ int boxes_update(Boxes *boxes, float delta_time);
 
 void boxes_float_in_lava(Boxes *boxes, Lava *lava);
 
-int boxes_add_to_physical_world(const Boxes *boxes,
-                                Physical_world *Physical_world);
+int boxes_add_box(Boxes *boxes, Rect rect, Color color);
+int boxes_delete_at(Boxes *boxes, Vec position);
+
+struct EvalResult
+boxes_send(Boxes *boxes, Gc *gc, struct Scope *scope, struct Expr path);
 
 #endif  // BOXES_H_