Final move of files to a better place. Only thing in the root is very common stuff.
This commit is contained in:
parent
ebe84c4d78
commit
5179f1c781
95 changed files with 190 additions and 191 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "goap.hpp"
|
#include "goap.hpp"
|
||||||
|
|
||||||
namespace ai {
|
namespace ai {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
|
|
||||||
namespace ai {
|
namespace ai {
|
||||||
// ZED: I don't know if this is the best place for this
|
// ZED: I don't know if this is the best place for this
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "shiterator.hpp"
|
#include "algos/shiterator.hpp"
|
||||||
|
|
||||||
namespace matrix {
|
namespace matrix {
|
||||||
using Row = shiterator::BaseRow<int>;
|
using Row = shiterator::BaseRow<int>;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
|
|
||||||
namespace maze {
|
namespace maze {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
|
|
||||||
struct CollisionData {
|
struct CollisionData {
|
||||||
DinkyECS::Entity entity = DinkyECS::NONE;
|
DinkyECS::Entity entity = DinkyECS::NONE;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#define FSM_DEBUG 1
|
#define FSM_DEBUG 1
|
||||||
#include "boss/fight.hpp"
|
#include "boss/fight.hpp"
|
||||||
#include "boss/system.hpp"
|
#include "boss/system.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "boss/ui.hpp"
|
#include "boss/ui.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "combat/battle.hpp"
|
#include "combat/battle.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include "boss/system.hpp"
|
#include "boss/system.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include "combat/battle.hpp"
|
#include "combat/battle.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "boss/fight.hpp"
|
#include "boss/fight.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#include "boss/ui.hpp"
|
#include "boss/ui.hpp"
|
||||||
#include "graphics/scene.hpp"
|
#include "graphics/scene.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "gui/guecstra.hpp"
|
#include "gui/guecstra.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "combat/battle.hpp"
|
#include "combat/battle.hpp"
|
||||||
|
|
||||||
namespace combat {
|
namespace combat {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace combat {
|
namespace combat {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
|
|
||||||
namespace components {
|
namespace components {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include "autowalker.hpp"
|
#include "game/autowalker.hpp"
|
||||||
#include "ai/ai_debug.hpp"
|
#include "ai/ai_debug.hpp"
|
||||||
#include "gui/ritual_ui.hpp"
|
#include "gui/ritual_ui.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
|
|
||||||
struct InventoryStats {
|
struct InventoryStats {
|
||||||
int healing = 0;
|
int healing = 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
|
|
||||||
namespace components {
|
namespace components {
|
||||||
static ComponentMap MAP;
|
static ComponentMap MAP;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
#include <SFML/Graphics/Rect.hpp>
|
#include <SFML/Graphics/Rect.hpp>
|
||||||
#include <SFML/Graphics/Shader.hpp>
|
#include <SFML/Graphics/Shader.hpp>
|
||||||
#include <SFML/Graphics/Sprite.hpp>
|
#include <SFML/Graphics/Sprite.hpp>
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <SFML/System/Vector2.hpp>
|
#include <SFML/System/Vector2.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include "json_mods.hpp"
|
#include "game/json_mods.hpp"
|
||||||
#include "ai/goap.hpp"
|
#include "ai/goap.hpp"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
|
|
||||||
namespace inventory {
|
namespace inventory {
|
||||||
bool Model::add(const std::string in_slot, DinkyECS::Entity ent) {
|
bool Model::add(const std::string in_slot, DinkyECS::Entity ent) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
// BUG: this should have a bool for "permanent" or "constant" so that
|
// BUG: this should have a bool for "permanent" or "constant" so that
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "worldbuilder.hpp"
|
#include "game/worldbuilder.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "components.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "rituals.hpp"
|
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "boss/ui.hpp"
|
#include "boss/ui.hpp"
|
||||||
#include "graphics/lights.hpp"
|
#include "graphics/lights.hpp"
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "algos/spatialmap.hpp"
|
#include "algos/spatialmap.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
#include "graphics/lights.hpp"
|
#include "graphics/lights.hpp"
|
||||||
#include "algos/pathing.hpp"
|
#include "algos/pathing.hpp"
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "ai/ai_debug.hpp"
|
#include "ai/ai_debug.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "ai/goap.hpp"
|
#include "ai/goap.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
namespace ritual {
|
namespace ritual {
|
||||||
using JunkItem = std::string;
|
using JunkItem = std::string;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
|
|
||||||
namespace sound {
|
namespace sound {
|
||||||
static SoundManager SMGR;
|
static SoundManager SMGR;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include "graphics/lights.hpp"
|
#include "graphics/lights.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include "ai/ai_debug.hpp"
|
#include "ai/ai_debug.hpp"
|
||||||
#include "shiterator.hpp"
|
#include "algos/shiterator.hpp"
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "combat/battle.hpp"
|
#include "combat/battle.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <SFML/Graphics/RenderTexture.hpp>
|
#include <SFML/Graphics/RenderTexture.hpp>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "algos/spatialmap.hpp"
|
#include "algos/spatialmap.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace System {
|
namespace System {
|
||||||
using namespace components;
|
using namespace components;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
#include "worldbuilder.hpp"
|
#include "game/worldbuilder.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "algos/maze.hpp"
|
#include "algos/maze.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "algos/spatialmap.hpp"
|
#include "algos/spatialmap.hpp"
|
||||||
|
|
||||||
class WorldBuilder {
|
class WorldBuilder {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
constexpr float SUB_FRAME_SENSITIVITY = 0.999f;
|
constexpr float SUB_FRAME_SENSITIVITY = 0.999f;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "graphics/easing.hpp"
|
#include "graphics/easing.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "json_mods.hpp"
|
#include "game/json_mods.hpp"
|
||||||
#include <source_location>
|
#include <source_location>
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
|
|
||||||
namespace animation {
|
namespace animation {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include "graphics/camera.hpp"
|
#include "graphics/camera.hpp"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <array>
|
#include <array>
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
#include "algos/pathing.hpp"
|
#include "algos/pathing.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
namespace lighting {
|
namespace lighting {
|
||||||
using components::LightSource;
|
using components::LightSource;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "graphics/palette.hpp"
|
#include "graphics/palette.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
|
|
||||||
namespace palette {
|
namespace palette {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <numbers>
|
#include <numbers>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
#include <SFML/System/Clock.hpp>
|
#include <SFML/System/Clock.hpp>
|
||||||
#include "algos/spatialmap.hpp"
|
#include "algos/spatialmap.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
|
|
||||||
using matrix::Matrix;
|
using matrix::Matrix;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include "graphics/camera.hpp"
|
#include "graphics/camera.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
namespace scene {
|
namespace scene {
|
||||||
using std::shared_ptr;
|
using std::shared_ptr;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include <SFML/Graphics/Image.hpp>
|
#include <SFML/Graphics/Image.hpp>
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include <SFML/Graphics/Image.hpp>
|
#include <SFML/Graphics/Image.hpp>
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include "backend.hpp"
|
#include "backend.hpp"
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "graphics/palette.hpp"
|
#include "graphics/palette.hpp"
|
||||||
|
|
||||||
namespace sfml {
|
namespace sfml {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "gui/guecstra.hpp"
|
#include "gui/guecstra.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "gui/combat_ui.hpp"
|
#include "gui/combat_ui.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
using namespace guecs;
|
using namespace guecs;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#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>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "gui/status_ui.hpp"
|
#include "gui/status_ui.hpp"
|
||||||
#include "gui/loot_ui.hpp"
|
#include "gui/loot_ui.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,15 @@
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <numbers>
|
#include <numbers>
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "gui/guecstra.hpp"
|
#include "gui/guecstra.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "boss/system.hpp"
|
#include "boss/system.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include "gui/debug_ui.hpp"
|
#include "gui/debug_ui.hpp"
|
||||||
#include "gui/main_ui.hpp"
|
#include "gui/main_ui.hpp"
|
||||||
#include "gui/combat_ui.hpp"
|
#include "gui/combat_ui.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include "gui/guecstra.hpp"
|
#include "gui/guecstra.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace guecs {
|
namespace guecs {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include "gui/loot_ui.hpp"
|
#include "gui/loot_ui.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
using namespace guecs;
|
using namespace guecs;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#include <SFML/Graphics/Font.hpp>
|
#include <SFML/Graphics/Font.hpp>
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
class LootUI {
|
class LootUI {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#include "gui/main_ui.hpp"
|
#include "gui/main_ui.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "graphics/palette.hpp"
|
#include "graphics/palette.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
constexpr const int MAP_WIDTH=13;
|
constexpr const int MAP_WIDTH=13;
|
||||||
constexpr const int MAP_HEIGHT=13;
|
constexpr const int MAP_HEIGHT=13;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
class MapViewUI {
|
class MapViewUI {
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "dbc.hpp"
|
#include "dbc.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
using namespace guecs;
|
using namespace guecs;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#include "gui/ritual_ui.hpp"
|
#include "gui/ritual_ui.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
namespace ritual {
|
namespace ritual {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
#include "gui/status_ui.hpp"
|
#include "gui/status_ui.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "algos/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 "game/systems.hpp"
|
||||||
#include "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
using namespace guecs;
|
using namespace guecs;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
#include "gui/fsm.hpp"
|
#include "gui/fsm.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "autowalker.hpp"
|
#include "game/autowalker.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "gui/backend.hpp"
|
#include "gui/backend.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "graphics/camera.hpp"
|
#include "graphics/camera.hpp"
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
|
|
||||||
|
|
@ -33,15 +33,15 @@ sources = files(
|
||||||
'storyboard/ui.cpp',
|
'storyboard/ui.cpp',
|
||||||
|
|
||||||
# graphics
|
# graphics
|
||||||
'graphics/textures.cpp',
|
|
||||||
'graphics/palette.cpp',
|
|
||||||
'graphics/shaders.cpp',
|
|
||||||
'graphics/scene.cpp',
|
|
||||||
'graphics/animation.cpp',
|
'graphics/animation.cpp',
|
||||||
'graphics/lights.cpp',
|
|
||||||
'graphics/raycaster.cpp',
|
|
||||||
'graphics/easing.cpp',
|
|
||||||
'graphics/camera.cpp',
|
'graphics/camera.cpp',
|
||||||
|
'graphics/easing.cpp',
|
||||||
|
'graphics/lights.cpp',
|
||||||
|
'graphics/palette.cpp',
|
||||||
|
'graphics/raycaster.cpp',
|
||||||
|
'graphics/scene.cpp',
|
||||||
|
'graphics/shaders.cpp',
|
||||||
|
'graphics/textures.cpp',
|
||||||
|
|
||||||
# algos
|
# algos
|
||||||
'algos/matrix.cpp',
|
'algos/matrix.cpp',
|
||||||
|
|
@ -52,16 +52,16 @@ sources = files(
|
||||||
'algos/stats.cpp',
|
'algos/stats.cpp',
|
||||||
|
|
||||||
# game
|
# game
|
||||||
'systems.cpp',
|
'game/worldbuilder.cpp',
|
||||||
'worldbuilder.cpp',
|
'game/map.cpp',
|
||||||
'rituals.cpp',
|
'game/level.cpp',
|
||||||
'inventory.cpp',
|
'game/inventory.cpp',
|
||||||
'autowalker.cpp',
|
'game/autowalker.cpp',
|
||||||
'components.cpp',
|
'game/rituals.cpp',
|
||||||
'game_level.cpp',
|
'game/sound.cpp',
|
||||||
'config.cpp',
|
'game/systems.cpp',
|
||||||
'map.cpp',
|
'game/components.cpp',
|
||||||
'sound.cpp',
|
'game/config.cpp',
|
||||||
|
|
||||||
# root
|
# root
|
||||||
'dbc.cpp',
|
'dbc.cpp',
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include "storyboard/ui.hpp"
|
#include "storyboard/ui.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include <guecs/ui.hpp>
|
#include <guecs/ui.hpp>
|
||||||
#include "graphics/camera.hpp"
|
#include "graphics/camera.hpp"
|
||||||
#include <SFML/Audio/Sound.hpp>
|
#include <SFML/Audio/Sound.hpp>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
namespace storyboard {
|
namespace storyboard {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include "ai/ai_debug.hpp"
|
#include "ai/ai_debug.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
|
|
||||||
using namespace dbc;
|
using namespace dbc;
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "graphics/animation.hpp"
|
#include "graphics/animation.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
using namespace components;
|
using namespace components;
|
||||||
using namespace textures;
|
using namespace textures;
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "combat/battle.hpp"
|
#include "combat/battle.hpp"
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "boss/system.hpp"
|
#include "boss/system.hpp"
|
||||||
#include "gui/backend.hpp"
|
#include "gui/backend.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include "graphics/palette.hpp"
|
#include "graphics/palette.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace components;
|
using namespace components;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
TEST_CASE("confirm basic config loader ops", "[config]") {
|
TEST_CASE("confirm basic config loader ops", "[config]") {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#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 "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#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 "inventory.hpp"
|
#include "game/inventory.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "graphics/lights.hpp"
|
#include "graphics/lights.hpp"
|
||||||
#include "point.hpp"
|
#include "algos/point.hpp"
|
||||||
|
|
||||||
using namespace lighting;
|
using namespace lighting;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#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 "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
using namespace components;
|
using namespace components;
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
#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 "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include "algos/matrix.hpp"
|
#include "algos/matrix.hpp"
|
||||||
#include "algos/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>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@
|
||||||
#include "algos/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 "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "rituals.hpp"
|
#include "game/rituals.hpp"
|
||||||
#include "simplefsm.hpp"
|
#include "algos/simplefsm.hpp"
|
||||||
|
|
||||||
TEST_CASE("ritual::Engine basic tests", "[rituals]") {
|
TEST_CASE("ritual::Engine basic tests", "[rituals]") {
|
||||||
ritual::Engine re("assets/rituals.json");
|
ritual::Engine re("assets/rituals.json");
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
#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 "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include "save.hpp"
|
#include "save.hpp"
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "map.hpp"
|
#include "game/map.hpp"
|
||||||
#include "worldbuilder.hpp"
|
#include "game/worldbuilder.hpp"
|
||||||
#include "tser.hpp"
|
#include "tser.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#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 "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "algos/spatialmap.hpp"
|
#include "algos/spatialmap.hpp"
|
||||||
#include "dinkyecs.hpp"
|
#include "algos/dinkyecs.hpp"
|
||||||
#include "algos/rand.hpp"
|
#include "algos/rand.hpp"
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "systems.hpp"
|
#include "game/systems.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <numbers>
|
#include <numbers>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
|
|
||||||
using namespace fmt;
|
using namespace fmt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define FSM_DEBUG 1
|
#define FSM_DEBUG 1
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include "autowalker.hpp"
|
#include "game/autowalker.hpp"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "gui/backend.hpp"
|
#include "gui/backend.hpp"
|
||||||
#include "game_level.hpp"
|
#include "game/level.hpp"
|
||||||
#include "boss/system.hpp"
|
#include "boss/system.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include "arena_ui.hpp"
|
#include "arena_ui.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include <fmt/xchar.h>
|
#include <fmt/xchar.h>
|
||||||
|
|
||||||
namespace arena {
|
namespace arena {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include <SFML/Graphics/Font.hpp>
|
#include <SFML/Graphics/Font.hpp>
|
||||||
#include "guecs.hpp"
|
#include "guecs.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "components.hpp"
|
#include "game/components.hpp"
|
||||||
#include <SFML/System/Clock.hpp>
|
#include <SFML/System/Clock.hpp>
|
||||||
|
|
||||||
// aspect ratio of art is 3/2 so 1.5
|
// aspect ratio of art is 3/2 so 1.5
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
#include <SFML/Graphics/RenderWindow.hpp>
|
#include <SFML/Graphics/RenderWindow.hpp>
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
#include "config.hpp"
|
#include "game/config.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include "shiterator.hpp"
|
#include "algos/shiterator.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "gui/fsm.hpp"
|
#include "gui/fsm.hpp"
|
||||||
#include "graphics/textures.hpp"
|
#include "graphics/textures.hpp"
|
||||||
#include "sound.hpp"
|
#include "game/sound.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "graphics/shaders.hpp"
|
#include "graphics/shaders.hpp"
|
||||||
#include "constants.hpp"
|
#include "constants.hpp"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue