aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:32:47 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:32:47 +0100
commit24c9a9ab277897a7191d4e99213c2ab9f5d4ecd8 (patch)
tree0e5f9dc8be0592431b52149db51337ccf3bc2e7f /src/crepe/api
parent0f2451f4d48c78426c2663501e6cdd6871f1e94a (diff)
make format
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/LoopManager.cpp5
-rw-r--r--src/crepe/api/LoopManager.h5
2 files changed, 3 insertions, 7 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index c25e31e..f41c357 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -27,9 +27,7 @@ LoopManager::LoopManager() {
[this](const ShutDownEvent & event) { return this->on_shutdown(event); });
}
-void LoopManager::process_input() {
- this->get_system<InputSystem>().update();
-}
+void LoopManager::process_input() { this->get_system<InputSystem>().update(); }
void LoopManager::start() {
this->setup();
@@ -45,7 +43,6 @@ void LoopManager::fixed_update() {
}
void LoopManager::loop() {
-
while (game_running) {
this->loop_timer.update();
diff --git a/src/crepe/api/LoopManager.h b/src/crepe/api/LoopManager.h
index 9986aa5..6b2e857 100644
--- a/src/crepe/api/LoopManager.h
+++ b/src/crepe/api/LoopManager.h
@@ -4,11 +4,11 @@
#include "../facade/SDLContext.h"
#include "../manager/ComponentManager.h"
-#include "../manager/SceneManager.h"
#include "../manager/EventManager.h"
#include "../manager/LoopTimerManager.h"
-#include "../system/System.h"
#include "../manager/Mediator.h"
+#include "../manager/SceneManager.h"
+#include "../system/System.h"
#include "api/Event.h"
@@ -103,7 +103,6 @@ private:
//! SDL context \todo no more singletons!
SDLContext & sdl_context = SDLContext::get_instance();
-
private:
/**
* \brief Callback function for ShutDownEvent