15 #include <game_manager/level/entity.hpp>
16 #include <message_bus.hpp>
17 #include <task_manager.hpp>
18 #include "game_manager/level/level.hpp"
25 int32_t level_floor = 0;
26 bool physics_paused =
false;
27 std::vector<ST::entity *> entities_ref{};
31 static int check_collision(uint64_t, std::vector<ST::entity *> *entities);
33 static uint8_t entity_set_x(int32_t x, uint64_t, std::vector<ST::entity *> *entities);
35 static uint8_t entity_set_y(int32_t y, uint64_t, std::vector<ST::entity *> *entities);
37 static void process_horizontal(std::vector<ST::entity *> *entities, int8_t friction);
39 static void process_vertical(std::vector<ST::entity *> *entities, int8_t gravity, int32_t level_floor);
41 void handle_messages();
This object contains all the data for a level and provides functions for loading and unloading a leve...
The central messaging system of the engine. All subsystem make extensive use of it.
This class handles all physics related actions in the engine.
void update(ST::level &level)
physics_manager(message_bus &gMessageBus)
This class handles a small queue for messages.