From 055ca804ebe27ea77f1c09079f119a0526426e70 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Tue, 7 Jan 2025 21:10:50 +0100 Subject: fixed includes --- game/hud/HudConfig.h | 2 +- game/hud/HudScript.cpp | 11 +++++++---- game/hud/HudScript.h | 6 +++--- game/hud/HudSubScene.cpp | 9 ++++++--- game/hud/HudSubScene.h | 3 ++- game/hud/SpeedScript.cpp | 7 ++++--- game/hud/SpeedScript.h | 4 ++-- 7 files changed, 25 insertions(+), 17 deletions(-) (limited to 'game/hud') diff --git a/game/hud/HudConfig.h b/game/hud/HudConfig.h index e3497fb..2da3b66 100644 --- a/game/hud/HudConfig.h +++ b/game/hud/HudConfig.h @@ -1,5 +1,5 @@ #pragma once -#include "types.h" +#include static constexpr crepe::vec2 TOP_LEFT = {-530,-230}; static constexpr const char* HUD_DISTANCE = "hud_distance"; diff --git a/game/hud/HudScript.cpp b/game/hud/HudScript.cpp index 165f245..4aca15e 100644 --- a/game/hud/HudScript.cpp +++ b/game/hud/HudScript.cpp @@ -1,12 +1,15 @@ #include "HudScript.h" -#include "api/Text.h" -#include "api/Transform.h" -#include "manager/SaveManager.h" +#include "HudConfig.h" + #include "../Config.h" #include "../Events.h" -#include "HudConfig.h" + #include +#include +#include +#include + using namespace crepe; using namespace std; diff --git a/game/hud/HudScript.h b/game/hud/HudScript.h index cf939f4..5b9ec17 100644 --- a/game/hud/HudScript.h +++ b/game/hud/HudScript.h @@ -1,8 +1,8 @@ #pragma once -#include "api/Event.h" -#include "api/Script.h" -#include "manager/SaveManager.h" +#include +#include +#include struct GetCoinEvent : public crepe::Event { int amount_of_coins; diff --git a/game/hud/HudSubScene.cpp b/game/hud/HudSubScene.cpp index 4995624..8b87a2e 100644 --- a/game/hud/HudSubScene.cpp +++ b/game/hud/HudSubScene.cpp @@ -1,9 +1,12 @@ #include "HudSubScene.h" -#include "api/GameObject.h" -#include "api/Text.h" -#include "../Config.h" #include "HudConfig.h" +#include "../Config.h" + +#include +#include + + using namespace crepe; using namespace std; diff --git a/game/hud/HudSubScene.h b/game/hud/HudSubScene.h index 711a34d..be696e9 100644 --- a/game/hud/HudSubScene.h +++ b/game/hud/HudSubScene.h @@ -1,6 +1,7 @@ #pragma once -#include "api/Scene.h" +#include + class HudSubScene { public: diff --git a/game/hud/SpeedScript.cpp b/game/hud/SpeedScript.cpp index 69534d9..c9f7188 100644 --- a/game/hud/SpeedScript.cpp +++ b/game/hud/SpeedScript.cpp @@ -1,7 +1,8 @@ #include "SpeedScript.h" -#include "api/Event.h" -#include "api/KeyCodes.h" -#include "manager/LoopTimerManager.h" + +#include +#include +#include using namespace crepe; using namespace std; diff --git a/game/hud/SpeedScript.h b/game/hud/SpeedScript.h index 8bd7271..76ada4f 100644 --- a/game/hud/SpeedScript.h +++ b/game/hud/SpeedScript.h @@ -1,7 +1,7 @@ #pragma once -#include "api/Script.h" -#include "manager/SaveManager.h" +#include +#include class SpeedScript : public crepe::Script { public: -- cgit v1.2.3