]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level.h
Remove TODO(#448)
[nothing.git] / src / game / level.h
index f7fdb0ad2e0daf36d4906d1d12647844635bae54..e44a991088b1ac6321e3d3f95309826b58aa9d5e 100644 (file)
@@ -3,28 +3,39 @@
 
 #include <SDL2/SDL.h>
 #include <SDL2/SDL_mixer.h>
-#include "./player.h"
-#include "./platforms.h"
-#include "./camera.h"
-#include "./sound_medium.h"
 
-typedef struct level_t level_t;
+#include "game/camera.h"
+#include "game/level/platforms.h"
+#include "game/level/player.h"
+#include "sound_samples.h"
 
-level_t *create_level_from_file(const char *file_name);
-void destroy_level(level_t *level);
+typedef struct Level Level;
 
-int level_render(const level_t *level, SDL_Renderer *renderer);
-int level_sound(level_t *level, sound_medium_t *sound_medium);
-int level_update(level_t *level, float delta_time);
+Level *create_level_from_file(const char *file_name);
+void destroy_level(Level *level);
 
-int level_event(level_t *level, const SDL_Event *event);
-int level_input(level_t *level,
+int level_render(const Level *level, Camera *camera);
+
+int level_sound(Level *level, Sound_samples *sound_samples);
+int level_update(Level *level, float delta_time);
+
+int level_event(Level *level, const SDL_Event *event);
+int level_input(Level *level,
                 const Uint8 *const keyboard_state,
                 SDL_Joystick *the_stick_of_joy);
-int level_reload_preserve_player(level_t *level,
+int level_enter_camera_event(Level *level,
+                             const Camera *camera);
+
+int level_reload_preserve_player(Level *level,
                                  const char *file_name);
 
-void level_toggle_debug_mode(level_t *level);
-void level_toggle_pause_mode(level_t *level);
+Rigid_rect *level_rigid_rect(Level *level,
+                             const char *rigid_rect_id);
+
+void level_toggle_debug_mode(Level *level);
+void level_toggle_pause_mode(Level *level);
+
+void level_hide_goal(Level *level, const char *goal_id);
+void level_show_goal(Level *level, const char *goal_id);
 
 #endif  // LEVEL_H_