]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/goals.h
(#639) Make rigid bodies interact with platforms
[nothing.git] / src / game / level / goals.h
index 5c6f93c84632cec35d84c74677174cdbb6025c0a..98855bf058de935bd68f130e4ba04f0a572a57aa 100644 (file)
@@ -6,10 +6,12 @@
 #include "game/camera.h"
 #include "game/level/player.h"
 #include "game/sound_samples.h"
+#include "ebisp/expr.h"
 
 typedef struct Goals Goals;
+typedef struct LineStream LineStream;
 
-Goals *create_goals_from_stream(FILE *stream);
+Goals *create_goals_from_line_stream(LineStream *line_stream);
 void destroy_goals(Goals *goals);
 
 Rect goals_hitbox(const Goals *goals);
@@ -20,11 +22,13 @@ int goals_sound(Goals *goals,
                 Sound_samples *sound_samples);
 void goals_update(Goals *goals,
                   float delta_time);
-void goals_hide(Goals *goals,
-                Rect player_hitbox);
+void goals_hide_from_player(Goals *goals,
+                            Rect player_hitbox);
 void goals_checkpoint(const Goals *goals,
                       Player *player);
 void goals_cue(Goals *goals,
                const Camera *camera);
 
+struct EvalResult goals_send(Goals *goals, Gc *gc, struct Scope *scope, struct Expr path);
+
 #endif  // GOALS_H_