Skip to content

Commit

Permalink
remove unit.hpp include from team.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 15, 2014
1 parent 9e7dc5b commit e32de17
Show file tree
Hide file tree
Showing 26 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/about.cpp
Expand Up @@ -21,9 +21,11 @@

#include "construct_dialog.hpp"
#include "display.hpp"
#include "formula_string_utils.hpp"
#include "gettext.hpp"
#include "marked-up_text.hpp"
#include "sdl/alpha.hpp"
#include "util.hpp"

#include <boost/foreach.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/ai/composite/component.cpp
Expand Up @@ -22,6 +22,7 @@
#include "property_handler.hpp"
#include "../../config.hpp"
#include "../../log.hpp"
#include "../../unit.hpp"

#include "../formula/ai.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/ai/composite/engine_fai.cpp
Expand Up @@ -25,6 +25,7 @@
#include "../formula/stage_side_formulas.hpp"
#include "../formula/stage_unit_formulas.hpp"
#include "../../log.hpp"
#include "../../unit.hpp"

namespace ai {

Expand Down
1 change: 1 addition & 0 deletions src/ai/contexts.cpp
Expand Up @@ -39,6 +39,7 @@
#include "../mouse_handler_base.hpp"
#include "../resources.hpp"
#include "../tod_manager.hpp"
#include "../unit.hpp"

#include <boost/foreach.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/ai/default/ai.cpp
Expand Up @@ -32,6 +32,7 @@
#include "../../mouse_handler_base.hpp"
#include "../../resources.hpp"
#include "../../terrain_filter.hpp"
#include "../../unit.hpp"
#include "../../unit_display.hpp"
#include "../../wml_exception.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/ai/default/attack.cpp
Expand Up @@ -28,6 +28,7 @@
#include "../../log.hpp"
#include "../../map.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"

static lg::log_domain log_ai("ai/attack");
#define LOG_AI LOG_STREAM(info, log_ai)
Expand Down
1 change: 1 addition & 0 deletions src/ai/default/contexts.cpp
Expand Up @@ -25,6 +25,7 @@
#include "../../map.hpp"
#include "../../resources.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"
#include "../composite/goal.hpp"
#include "../../pathfind/pathfind.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/ai/testing.cpp
Expand Up @@ -23,6 +23,7 @@
#include "../util.hpp"
#include "../resources.hpp"
#include "../team.hpp"
#include "../unit.hpp"
#include "../tod_manager.hpp"

static lg::log_domain log_ai_testing("ai/testing");
Expand Down
1 change: 1 addition & 0 deletions src/ai/testing/ca.cpp
Expand Up @@ -29,6 +29,7 @@
#include "../../map.hpp"
#include "../../resources.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"
#include "../../pathfind/pathfind.hpp"
#include "../../pathfind/teleport.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/ai/testing/ca_testing_move_to_targets.cpp
Expand Up @@ -26,6 +26,7 @@
#include "../../map.hpp"
#include "../../resources.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"
#include "../../terrain_filter.hpp"
#include "../../pathfind/pathfind.hpp"

Expand Down
2 changes: 2 additions & 0 deletions src/ai/testing/ca_testing_recruitment.cpp
Expand Up @@ -29,6 +29,8 @@
#include "../../map.hpp"
#include "../../resources.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"
#include "../../unit_types.hpp"
#include "../../wml_exception.hpp"
#include "../../pathfind/pathfind.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/callable_objects.hpp
Expand Up @@ -18,6 +18,7 @@
#include "formula_callable.hpp"
#include "map.hpp"
#include "team.hpp"
#include "unit.hpp"

#define CALLABLE_WRAPPER_START(klass) \
class klass##_callable : public game_logic::formula_callable { \
Expand Down
1 change: 1 addition & 0 deletions src/carryover.cpp
Expand Up @@ -18,6 +18,7 @@

#include "config.hpp"
#include "team.hpp"
#include "unit.hpp"
#include "gamestatus.hpp"
#include <boost/foreach.hpp>
#include <cassert>
Expand Down
1 change: 1 addition & 0 deletions src/construct_dialog.cpp
Expand Up @@ -18,6 +18,7 @@
#include "construct_dialog.hpp"

#include "display.hpp"
#include "formula_string_utils.hpp"
#include "gettext.hpp"
#include "sound.hpp"
#include "log.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/display.hpp
Expand Up @@ -43,8 +43,10 @@ namespace wb {
class manager;
}

#include "animated.hpp"
#include "display_context.hpp"
#include "font.hpp"
#include "image.hpp" //only needed for enums (!)
#include "key.hpp"
#include "team.hpp"
#include "time_of_day.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/editor/editor_display.cpp
Expand Up @@ -16,6 +16,7 @@
#include "editor_display.hpp"
#include "reports.hpp"
#include "terrain_builder.hpp"
#include "unit_map.hpp"

#include <boost/shared_ptr.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/editor/map/map_context.cpp
Expand Up @@ -25,6 +25,7 @@
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "team.hpp"
#include "unit.hpp"
#include "wml_exception.hpp"


Expand Down
1 change: 1 addition & 0 deletions src/editor/palette/editor_palettes.cpp
Expand Up @@ -21,6 +21,7 @@
#include "tooltips.hpp"
#include "overlay.hpp"
#include "filesystem.hpp"
#include "unit_types.hpp"

#include "editor/action/mouse/mouse_action.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/editor/palette/terrain_palettes.cpp
Expand Up @@ -21,6 +21,7 @@
#include "terrain_palettes.hpp"

#include "../../gettext.hpp"
#include "../../formula_string_utils.hpp"

#include <boost/foreach.hpp>

Expand Down
2 changes: 2 additions & 0 deletions src/editor/palette/unit_palette.hpp
Expand Up @@ -21,6 +21,8 @@

#include "editor_palettes.hpp"

#include "../../unit_types.hpp"

namespace editor {

//std::string get_selected_terrain();
Expand Down
1 change: 1 addition & 0 deletions src/game_display.hpp
Expand Up @@ -28,6 +28,7 @@ class game_board;
#include "chat_events.hpp"
#include "display.hpp"
#include "pathfind/pathfind.hpp"
#include "unit.hpp" // TODO: Refactor so that this is not necessary

#include <deque>

Expand Down
2 changes: 2 additions & 0 deletions src/gui/dialogs/gamestate_inspector.cpp
Expand Up @@ -34,6 +34,8 @@
#include "../../gamestatus.hpp"
#include "../../resources.hpp"
#include "../../team.hpp"
#include "../../unit.hpp"
#include "../../unit_map.hpp"
#include "../../ai/manager.hpp"

#include <vector>
Expand Down
2 changes: 2 additions & 0 deletions src/leader_scroll_dialog.cpp
Expand Up @@ -26,6 +26,8 @@
//#include "gettext.hpp"
#include "marked-up_text.hpp"
#include "resources.hpp"
#include "unit.hpp"

//
//#include <boost/foreach.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/side_filter.cpp
Expand Up @@ -24,6 +24,7 @@
#include "team.hpp"
#include "serialization/string_utils.hpp"
#include "network.hpp"
#include "unit.hpp"

#include <boost/foreach.hpp>

Expand Down
7 changes: 6 additions & 1 deletion src/team.hpp
Expand Up @@ -17,8 +17,13 @@
#include "color_range.hpp"
#include "game_config.hpp"
#include "make_enum.hpp"
#include "map_location.hpp"
#include "savegame_config.hpp"
#include "unit.hpp"
#include "SDL.h" //Apparently needed b/c of SDL_Color
#include "unit_ptr.hpp"
#include "util.hpp"

#include <boost/shared_ptr.hpp>

class gamemap;

Expand Down
1 change: 1 addition & 0 deletions src/terrain_filter.cpp
Expand Up @@ -25,6 +25,7 @@
#include "team.hpp"
#include "terrain_filter.hpp"
#include "tod_manager.hpp"
#include "unit.hpp"
#include "variable.hpp"

#include <boost/foreach.hpp>
Expand Down

0 comments on commit e32de17

Please sign in to comment.