]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/lava.h
(#639) Introduce rigid_bodies_collide_with_itself
[nothing.git] / src / game / level / lava.h
index 3ef4c56fd3c477bf1e768b01d93bf58970309242..b500b23bb48a8d0bbc523ee260644d9660c2e0f0 100644 (file)
@@ -1,19 +1,24 @@
 #ifndef LAVA_H_
 #define LAVA_H_
 
-#include "game/level/camera.h"
+#include <stdbool.h>
+
+#include "game/camera.h"
 #include "math/rect.h"
 
-typedef struct lava_t lava_t;
+typedef struct Lava Lava;
+typedef struct Rigid_rect Rigid_rect;
+typedef struct LineStream LineStream;
+
+Lava *create_lava_from_line_stream(LineStream *line_stream);
+void destroy_lava(Lava *lava);
 
-lava_t *create_lava_from_stream(FILE *stream);
-void destroy_lava(lava_t *lava);
+int lava_render(const Lava *lava,
+                Camera *camera);
+int lava_update(Lava *lava, float delta_time);
 
-int lava_render(const lava_t *lava,
-                const camera_t *camera);
-int lava_update(lava_t *lava, float delta_time);
+bool lava_overlaps_rect(const Lava *lava, Rect rect);
 
-int lava_overlaps_rect(const lava_t *lava,
-                       rect_t rect);
+void lava_float_rigid_rect(Lava *lava, Rigid_rect *rigid_rect);
 
 #endif  // LAVA_H_