]> git.lizzy.rs Git - nothing.git/blob - src/game/level.h
Merge pull request #1215 from gooddoog/387
[nothing.git] / src / game / level.h
1 #ifndef LEVEL_H_
2 #define LEVEL_H_
3
4 #include <SDL.h>
5
6 #include "game/camera.h"
7 #include "game/level/platforms.h"
8 #include "game/level/player.h"
9 #include "sound_samples.h"
10
11 typedef struct Level Level;
12 typedef struct LevelEditor LevelEditor;
13
14 Level *create_level_from_level_editor(const LevelEditor *level_editor);
15 void destroy_level(Level *level);
16
17 int level_render(const Level *level, const Camera *camera);
18
19 int level_sound(Level *level, Sound_samples *sound_samples);
20 int level_update(Level *level, float delta_time);
21
22 int level_event(Level *level, const SDL_Event *event,
23                 Camera *camera, Sound_samples *sound_samples);
24 int level_input(Level *level,
25                 const Uint8 *const keyboard_state,
26                 SDL_Joystick *the_stick_of_joy);
27 int level_enter_camera_event(Level *level, Camera *camera);
28
29 void level_disable_pause_mode(Level *level, Camera *camera,
30                               Sound_samples *sound_samples);
31
32 #endif  // LEVEL_H_