Algos directory is setup.

This commit is contained in:
Zed A. Shaw 2026-02-27 12:07:01 -05:00
parent 0064664556
commit b91e9ffaf6
38 changed files with 46 additions and 47 deletions

View file

@ -1,7 +1,7 @@
#include "dbc.hpp" #include "dbc.hpp"
#include "goap.hpp" #include "goap.hpp"
#include "ai_debug.hpp" #include "ai_debug.hpp"
#include "stats.hpp" #include "algos/stats.hpp"
#include <queue> #include <queue>
// #define DEBUG_CYCLES 1 // #define DEBUG_CYCLES 1

View file

@ -1,8 +1,8 @@
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include "rand.hpp" #include "algos/rand.hpp"
#include "constants.hpp" #include "constants.hpp"
#include "maze.hpp" #include "algos/maze.hpp"
using std::string; using std::string;
using matrix::Matrix; using matrix::Matrix;

View file

@ -1,5 +1,5 @@
#include "constants.hpp" #include "constants.hpp"
#include "pathing.hpp" #include "algos/pathing.hpp"
#include "dbc.hpp" #include "dbc.hpp"
#include <vector> #include <vector>

View file

@ -1,4 +1,4 @@
#include "rand.hpp" #include "algos/rand.hpp"
namespace Random { namespace Random {
std::random_device RNG; std::random_device RNG;

View file

@ -1,4 +1,4 @@
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
#include <fmt/core.h> #include <fmt/core.h>
using namespace fmt; using namespace fmt;

View file

@ -1,4 +1,4 @@
#include "stats.hpp" #include "algos/stats.hpp"
#include <fmt/core.h> #include <fmt/core.h>
#include "dbc.hpp" #include "dbc.hpp"

View file

@ -2,7 +2,7 @@
#include <memory> #include <memory>
#include <chrono> #include <chrono>
#include "dbc.hpp" #include "dbc.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include "sound.hpp" #include "sound.hpp"

View file

@ -3,7 +3,7 @@
#include "boss/system.hpp" #include "boss/system.hpp"
#include "game_level.hpp" #include "game_level.hpp"
#include <iostream> #include <iostream>
#include "rand.hpp" #include "algos/rand.hpp"
#include "events.hpp" #include "events.hpp"
namespace boss { namespace boss {

View file

@ -1,5 +1,5 @@
#include "components.hpp" #include "components.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
namespace components { namespace components {
int Combat::attack(Combat &target) { int Combat::attack(Combat &target) {

View file

@ -1,4 +1,4 @@
#include "rand.hpp" #include "algos/rand.hpp"
#include "animation.hpp" #include "animation.hpp"
#include <fmt/core.h> #include <fmt/core.h>
#include <unordered_map> #include <unordered_map>

View file

@ -5,7 +5,7 @@
#include "lights.hpp" #include "lights.hpp"
#include "map.hpp" #include "map.hpp"
#include <memory> #include <memory>
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
namespace components { namespace components {
struct Position; struct Position;

View file

@ -3,7 +3,7 @@
#include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp> #include <SFML/Graphics/Font.hpp>
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "stats.hpp" #include "algos/stats.hpp"
namespace gui { namespace gui {
class DebugUI { class DebugUI {

View file

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Clock.hpp> #include <SFML/System/Clock.hpp>
#include "stats.hpp" #include "algos/stats.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "gui/overlay_ui.hpp" #include "gui/overlay_ui.hpp"
#include "gui/debug_ui.hpp" #include "gui/debug_ui.hpp"

View file

@ -3,9 +3,9 @@
#include <string> #include <string>
#include "dbc.hpp" #include "dbc.hpp"
#include "components.hpp" #include "components.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include "systems.hpp" #include "systems.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <codecvt> #include <codecvt>
#include <iostream> #include <iostream>
#include <fmt/xchar.h> #include <fmt/xchar.h>

View file

@ -3,9 +3,9 @@
#include <string> #include <string>
#include "dbc.hpp" #include "dbc.hpp"
#include "components.hpp" #include "components.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include "systems.hpp" #include "systems.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <codecvt> #include <codecvt>
#include <iostream> #include <iostream>
#include <memory> #include <memory>

View file

@ -1,6 +1,6 @@
#include "gui/ritual_ui.hpp" #include "gui/ritual_ui.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "rand.hpp" #include "algos/rand.hpp"
#include "sound.hpp" #include "sound.hpp"
#include "events.hpp" #include "events.hpp"
#include "game_level.hpp" #include "game_level.hpp"

View file

@ -1,7 +1,7 @@
#include "gui/status_ui.hpp" #include "gui/status_ui.hpp"
#include "components.hpp" #include "components.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "rand.hpp" #include "algos/rand.hpp"
#include <fmt/xchar.h> #include <fmt/xchar.h>
#include "gui/guecstra.hpp" #include "gui/guecstra.hpp"
#include "systems.hpp" #include "systems.hpp"

View file

@ -4,7 +4,7 @@
#include "point.hpp" #include "point.hpp"
#include <algorithm> #include <algorithm>
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "pathing.hpp" #include "algos/pathing.hpp"
#include "components.hpp" #include "components.hpp"
namespace lighting { namespace lighting {

View file

@ -1,12 +1,11 @@
#include "map.hpp" #include "map.hpp"
#include "dbc.hpp" #include "dbc.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <vector> #include <vector>
#include <array> #include <array>
#include <fmt/core.h> #include <fmt/core.h>
#include <utility> #include <utility>
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "rand.hpp"
using std::vector, std::pair; using std::vector, std::pair;
using namespace fmt; using namespace fmt;

View file

@ -7,7 +7,7 @@
#include <fmt/core.h> #include <fmt/core.h>
#include "point.hpp" #include "point.hpp"
#include "lights.hpp" #include "lights.hpp"
#include "pathing.hpp" #include "algos/pathing.hpp"
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "constants.hpp" #include "constants.hpp"

View file

@ -45,11 +45,11 @@ sources = files(
# algos # algos
'algos/matrix.cpp', 'algos/matrix.cpp',
'maze.cpp', 'algos/maze.cpp',
'pathing.cpp', 'algos/pathing.cpp',
'rand.cpp', 'algos/rand.cpp',
'spatialmap.cpp', 'algos/spatialmap.cpp',
'stats.cpp', 'algos/stats.cpp',
# game # game
'systems.cpp', 'systems.cpp',

View file

@ -2,7 +2,7 @@
#include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp>
#include <SFML/System/Clock.hpp> #include <SFML/System/Clock.hpp>
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
#include "game_level.hpp" #include "game_level.hpp"
#include "textures.hpp" #include "textures.hpp"

View file

@ -7,7 +7,7 @@
#include <algorithm> #include <algorithm>
#include <fmt/core.h> #include <fmt/core.h>
#include "point.hpp" #include "point.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include "dbc.hpp" #include "dbc.hpp"
/* /*

View file

@ -2,8 +2,8 @@
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include <cmath> #include <cmath>
#include "rand.hpp" #include "algos/rand.hpp"
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
#include "dbc.hpp" #include "dbc.hpp"
#include "lights.hpp" #include "lights.hpp"
#include "events.hpp" #include "events.hpp"

View file

@ -2,7 +2,7 @@
#include "components.hpp" #include "components.hpp"
#include <SFML/Graphics/RenderTexture.hpp> #include <SFML/Graphics/RenderTexture.hpp>
#include "map.hpp" #include "map.hpp"
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
#include "game_level.hpp" #include "game_level.hpp"
namespace System { namespace System {

View file

@ -1,10 +1,10 @@
#include "worldbuilder.hpp" #include "worldbuilder.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <fmt/core.h> #include <fmt/core.h>
#include <iostream> #include <iostream>
#include "components.hpp" #include "components.hpp"
#include "rituals.hpp" #include "rituals.hpp"
#include "maze.hpp" #include "algos/maze.hpp"
#include "textures.hpp" #include "textures.hpp"
#include "inventory.hpp" #include "inventory.hpp"
#include "systems.hpp" #include "systems.hpp"

View file

@ -3,7 +3,7 @@
#include "map.hpp" #include "map.hpp"
#include "dinkyecs.hpp" #include "dinkyecs.hpp"
#include "components.hpp" #include "components.hpp"
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
class WorldBuilder { class WorldBuilder {
public: public:

View file

@ -6,7 +6,7 @@
#include <memory> #include <memory>
#include <chrono> #include <chrono>
#include <thread> #include <thread>
#include "rand.hpp" #include "algos/rand.hpp"
#include "animation.hpp" #include "animation.hpp"
#include "sound.hpp" #include "sound.hpp"
#include "components.hpp" #include "components.hpp"

View file

@ -3,7 +3,7 @@
#include <string> #include <string>
#include "config.hpp" #include "config.hpp"
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include "game_level.hpp" #include "game_level.hpp"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <fstream> #include <fstream>

View file

@ -2,9 +2,9 @@
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include "constants.hpp" #include "constants.hpp"
#include "maze.hpp" #include "algos/maze.hpp"
using std::string; using std::string;
using matrix::Matrix; using matrix::Matrix;

View file

@ -2,13 +2,13 @@
#include <fmt/core.h> #include <fmt/core.h>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <fstream> #include <fstream>
#include "pathing.hpp" #include "algos/pathing.hpp"
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include "ai/ai.hpp" #include "ai/ai.hpp"
#include "game_level.hpp" #include "game_level.hpp"
#include <chrono> #include <chrono>
#include <thread> #include <thread>
#include "rand.hpp" #include "algos/rand.hpp"
#include "systems.hpp" #include "systems.hpp"
using namespace fmt; using namespace fmt;

View file

@ -1,9 +1,9 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include "spatialmap.hpp" #include "algos/spatialmap.hpp"
#include "dinkyecs.hpp" #include "dinkyecs.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <limits> #include <limits>
#include <fmt/core.h> #include <fmt/core.h>

View file

@ -1,6 +1,6 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include "stats.hpp" #include "algos/stats.hpp"
#include "rand.hpp" #include "algos/rand.hpp"
#include <cmath> #include <cmath>
#include <fmt/core.h> #include <fmt/core.h>