X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgame%2Flevel%2Fboxes.h;h=207d1278906c76e6c9f6444cc9c99fcbd65daf55;hb=dc356739e8d0bc20bf62c2ca034d1b1122e4aea4;hp=0bfc63ef0f45e58197041333b318abf8e0631f49;hpb=3934426232228039aa9e32eadfd5d749440618ce;p=nothing.git diff --git a/src/game/level/boxes.h b/src/game/level/boxes.h index 0bfc63ef..207d1278 100644 --- a/src/game/level/boxes.h +++ b/src/game/level/boxes.h @@ -4,20 +4,25 @@ #include "game/camera.h" #include "game/level/platforms.h" #include "lava.h" +#include "ebisp/expr.h" -typedef struct boxes_t boxes_t; -typedef struct player_t player_t; -typedef struct physical_world_t physical_world_t; +typedef struct Boxes Boxes; +typedef struct Player Player; +typedef struct Physical_world Physical_world; +typedef struct LineStream LineStream; -boxes_t *create_boxes_from_stream(FILE *stream); -void destroy_boxes(boxes_t *boxes); +Boxes *create_boxes_from_line_stream(LineStream *line_stream, RigidBodies *rigid_bodies); +void destroy_boxes(Boxes *boxes); -int boxes_render(boxes_t *boxes, camera_t *camera); -int boxes_update(boxes_t *boxes, float delta_time); +int boxes_render(Boxes *boxes, Camera *camera); +int boxes_update(Boxes *boxes, float delta_time); -void boxes_float_in_lava(boxes_t *boxes, lava_t *lava); +void boxes_float_in_lava(Boxes *boxes, Lava *lava); -int boxes_add_to_physical_world(const boxes_t *boxes, - physical_world_t *physical_world_t); +int boxes_add_to_physical_world(const Boxes *boxes, + Physical_world *Physical_world); + +struct EvalResult +boxes_send(Boxes *boxes, Gc *gc, struct Scope *scope, struct Expr path); #endif // BOXES_H_