X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgame%2Flevel.h;h=5343015485cb0c95fbf0a3c8ba823002b45f9628;hb=016bee583aa3145b41d4b9718f017d64eb5d37fa;hp=07594405a429ff26e786316c0ada998c5ca15a45;hpb=da902a6cec105931fa5402b12471d5cc9f9b2474;p=nothing.git diff --git a/src/game/level.h b/src/game/level.h index 07594405..53430154 100644 --- a/src/game/level.h +++ b/src/game/level.h @@ -1,8 +1,7 @@ #ifndef LEVEL_H_ #define LEVEL_H_ -#include -#include +#include #include "game/camera.h" #include "game/level/platforms.h" @@ -10,36 +9,23 @@ #include "sound_samples.h" typedef struct Level Level; +typedef struct LevelEditor LevelEditor; -Level *create_level_from_file(const char *file_name); +Level *create_level_from_level_editor(const LevelEditor *level_editor); void destroy_level(Level *level); -int level_render(const Level *level, Camera *camera); +int level_render(const Level *level, const 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_event(Level *level, const SDL_Event *event, + Camera *camera, Sound_samples *sound_samples); int level_input(Level *level, const Uint8 *const keyboard_state, SDL_Joystick *the_stick_of_joy); -int level_enter_camera_event(Level *level, - const Camera *camera); +int level_enter_camera_event(Level *level, Camera *camera); -int level_reload_preserve_player(Level *level, - const char *file_name); - -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); - -void level_hide_label(Level *level, const char *label_id); - -long int level_player_jump_count(Level *level); - #endif // LEVEL_H_