Skip to content

Commit

Permalink
Moving include files to have proper include statement
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeLepape committed Nov 3, 2023
1 parent c716783 commit 93e85c2
Show file tree
Hide file tree
Showing 81 changed files with 256 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <string>

#include "concept.h"
#include "pause.h"
#include "elevation/utils/concept.h"
#include "elevation/utils/pause.h"

namespace action {
namespace statement {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include "action_writer.h"
#include "concept.h"
#include "player.h"
#include "plug.h"
#include "weapon.h"
#include "elevation/action/action_writer.h"
#include "elevation/entity/player.h"
#include "elevation/entity/plug.h"
#include "elevation/utils/concept.h"
#include "elevation/weapon/weapon.h"

namespace action {
class AddWeapon {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "concept.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "concept.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "concept.h"
#include "plug.h"
#include "elevation/entity/plug.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "action_writer.h"
#include "concept.h"
#include "elevation/action/action_writer.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "concept.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <range/v3/algorithm/for_each.hpp>

#include "combo_writer.h"
#include "concept.h"
#include "elevation/fight/combo_writer.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#include <range/v3/algorithm/for_each.hpp>

#include "concept.h"
#include "utils_writer.h"
#include "weapon_writer.h"
#include "elevation/utils/concept.h"
#include "elevation/weapon/weapon_writer.h"
#include "elevation/writer/utils_writer.h"

namespace action {
template <utils::Printable T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once

#include "action_writer.h"
#include "concept.h"
#include "languages.h"
#include "message_writer.h"
#include "pause.h"
#include "player.h"
#include "plug.h"
#include "elevation/action/action_writer.h"
#include "elevation/data_files/languages.h"
#include "elevation/entity/player.h"
#include "elevation/entity/plug.h"
#include "elevation/utils/concept.h"
#include "elevation/utils/pause.h"
#include "elevation/writer/message_writer.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "concept.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "concept.h"
#include "elevation/utils/concept.h"

namespace action {
class PlugAttack {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#include <range/v3/algorithm/binary_search.hpp>

#include "action_writer.h"
#include "concept.h"
#include "languages.h"
#include "list_name_data.h"
#include "message_writer.h"
#include "player.h"
#include "elevation/action/action_writer.h"
#include "elevation/data/list_name_data.h"
#include "elevation/data_files/languages.h"
#include "elevation/entity/player.h"
#include "elevation/utils/concept.h"
#include "elevation/writer/message_writer.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "player.h"
#include "elevation/entity/player.h"

namespace action {
class RegenerateAllLife {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "player.h"
#include "elevation/entity/player.h"

namespace action {
class Regeneration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <iostream>

#include "action_writer.h"
#include "concept.h"
#include "elevation/action/action_writer.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#include <range/v3/algorithm/find_if.hpp>
#include <range/v3/range/concepts.hpp>

#include "action_writer.h"
#include "dead.h"
#include "languages.h"
#include "player.h"
#include "plug.h"
#include "elevation/action/action_writer.h"
#include "elevation/action/dead.h"
#include "elevation/data_files/languages.h"
#include "elevation/entity/player.h"
#include "elevation/entity/plug.h"

namespace action {
class UseWeapon {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "options.h"
#include "elevation/utils/options.h"

namespace game_engine {
void launch(const utils::Options& options, const std::string& game_id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#include <fmt/color.h>

#include "concept.h"
#include "game_engine.h"
#include "options.h"
#include "results.h"
#include "selection.h"
#include "elevation/beginning/game_engine.h"
#include "elevation/entity/results.h"
#include "elevation/selection/selection.h"
#include "elevation/utils/concept.h"
#include "elevation/utils/options.h"

namespace action {
template <utils::Printable T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "action_writer.h"
#include "concept.h"
#include "elevation/action/action_writer.h"
#include "elevation/utils/concept.h"

namespace action {
template <utils::Printable T, utils::Printable U>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include "concept.h"
#include "game_engine.h"
#include "id.h"
#include "options.h"
#include "results.h"
#include "elevation/beginning/game_engine.h"
#include "elevation/entity/results.h"
#include "elevation/utils/concept.h"
#include "elevation/utils/id.h"
#include "elevation/utils/options.h"

namespace action {
template <utils::Printable T>
Expand Down
32 changes: 16 additions & 16 deletions src/beginning/src/game_engine.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#include "game_engine.h"
#include "elevation/beginning/game_engine.h"

#include "introduction.h"
#include "level1.h"
#include "level10.h"
#include "level2.h"
#include "level3.h"
#include "level4.h"
#include "level5.h"
#include "level6.h"
#include "level7.h"
#include "level8.h"
#include "level9.h"
#include "level_utils.h"
#include "outro.h"
#include "player.h"
#include "results.h"
#include "elevation/entity/player.h"
#include "elevation/entity/results.h"
#include "elevation/level/introduction.h"
#include "elevation/level/level1.h"
#include "elevation/level/level10.h"
#include "elevation/level/level2.h"
#include "elevation/level/level3.h"
#include "elevation/level/level4.h"
#include "elevation/level/level5.h"
#include "elevation/level/level6.h"
#include "elevation/level/level7.h"
#include "elevation/level/level8.h"
#include "elevation/level/level9.h"
#include "elevation/level/level_utils.h"
#include "elevation/level/outro.h"

namespace game_engine {
void launch(const utils::Options& options, const std::string& game_id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <fstream>
#include <nlohmann/json.hpp>

#include "concept.h"
#include "elevation/utils/concept.h"

namespace data {
template <utils::Printable T>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/data/src/list_name_data.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "list_name_data.h"
#include "elevation/data/list_name_data.h"

#include <fstream>

#include "data.h"
#include "elevation/data/data.h"

namespace data {
std::set<std::string> read_list_name(fs::path&& file_path) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#define FRENCH

#ifdef FRENCH
# include "french_data.h"
# include "elevation/data_files/french_data.h"
#endif
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "health_bar.h"
#include "weapon.h"
#include "elevation/entity/health_bar.h"
#include "elevation/weapon/weapon.h"

static constexpr int MAX_LIFE_POINTS_PLAYER = 100;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "health_bar.h"
#include "weapon.h"
#include "elevation/entity/health_bar.h"
#include "elevation/weapon/weapon.h"

namespace entity {
class Plug {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <filesystem>
#include <fstream>

#include "data.h"
#include "player.h"
#include "elevation/data/data.h"
#include "elevation/entity/player.h"

namespace fs = std::filesystem;

Expand Down
4 changes: 2 additions & 2 deletions src/entity/src/player.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "player.h"
#include "elevation/entity/player.h"

#include <algorithm>
#include <iostream>

#include "results.h"
#include "elevation/entity/results.h"

namespace entity {
Player::Player(const std::string& pseudo, int nbLevelSuceeded,
Expand Down
2 changes: 1 addition & 1 deletion src/entity/src/plug.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "plug.h"
#include "elevation/entity/plug.h"

namespace entity {
Plug::Plug(const std::string& name, int nbLifePoints, weapon::Weapon&& weapon)
Expand Down
2 changes: 1 addition & 1 deletion src/entity/src/results.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "results.h"
#include "elevation/entity/results.h"

#include <iomanip>
#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <variant>

#include "concept.h"
#include "nothing.h"
#include "selection.h"
#include "use_weapon.h"
#include "elevation/action/nothing.h"
#include "elevation/action/use_weapon.h"
#include "elevation/selection/selection.h"
#include "elevation/utils/concept.h"

template <utils::Printable T>
class Combo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include "combo.h"
#include "nothing.h"
#include "selection.h"
#include "use_weapon.h"
#include "elevation/action/nothing.h"
#include "elevation/action/use_weapon.h"
#include "elevation/fight/combo.h"
#include "elevation/selection/selection.h"

template <utils::Printable T>
class ComboDoubleMeleeWeapon : public Combo<T> {
Expand Down
Loading

0 comments on commit 93e85c2

Please sign in to comment.