Skip to content

Commit

Permalink
remove unit.hpp include from game_display.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 17, 2014
1 parent 8c2a293 commit 1cc51de
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/actions/vision.cpp
Expand Up @@ -36,6 +36,8 @@

#include <boost/foreach.hpp>

class unit_animation;

static lg::log_domain log_engine("engine");
#define DBG_NG LOG_STREAM(debug, log_engine)
#define ERR_NG LOG_STREAM(err, log_engine)
Expand Down
1 change: 1 addition & 0 deletions src/ai/actions.cpp
Expand Up @@ -52,6 +52,7 @@
#include "../resources.hpp"
#include "../statistics.hpp"
#include "../team.hpp"
#include "../unit.hpp"
#include "../synced_context.hpp"

namespace ai {
Expand Down
1 change: 1 addition & 0 deletions src/ai/testing/ca_global_fallback.cpp
Expand Up @@ -31,6 +31,7 @@
#include "../../team.hpp"
#include "../../terrain_filter.hpp"
#include "../../tod_manager.hpp"
#include "../../unit.hpp"

#include <boost/foreach.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/attack_prediction_display.cpp
Expand Up @@ -24,6 +24,7 @@
#include "marked-up_text.hpp"
#include "resources.hpp"
#include "sdl/alpha.hpp"
#include "unit.hpp"
#include "unit_abilities.hpp"

// Conversion routine for both unscathed and damage change percentage.
Expand Down
1 change: 0 additions & 1 deletion src/display.hpp
Expand Up @@ -36,7 +36,6 @@
class config;
class fake_unit_manager;
class terrain_builder;
struct time_of_day;
class map_labels;
class arrow;

Expand Down
1 change: 1 addition & 0 deletions src/game_config_manager.cpp
Expand Up @@ -30,6 +30,7 @@
#include "resources.hpp"
#include "scripting/lua.hpp"
#include "terrain_builder.hpp"
#include "unit_types.hpp"

#include <boost/foreach.hpp>

Expand Down
2 changes: 0 additions & 2 deletions src/game_display.hpp
Expand Up @@ -20,15 +20,13 @@
class config;
class tod_manager;
class team;
class unit;
class unit_map;
class game_board;

#include "animated.hpp"
#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
7 changes: 4 additions & 3 deletions src/menu_events.cpp
Expand Up @@ -28,8 +28,9 @@
#include "actions/vision.hpp"
#include "ai/manager.hpp"
#include "dialogs.hpp"
#include "formatter.hpp"
#include "filechooser.hpp"
#include "formatter.hpp"
#include "formula_string_utils.hpp"
#include "game_board.hpp"
#include "game_end_exceptions.hpp"
#include "game_events/pump.hpp"
Expand Down Expand Up @@ -62,14 +63,14 @@
#include "resources.hpp"
#include "savegame.hpp"
#include "save_index.hpp"
#include "scripting/lua.hpp"
#include "sound.hpp"
#include "statistics_dialog.hpp"
#include "synced_context.hpp"
#include "terrain_builder.hpp"
#include "unit.hpp"
#include "unit_display.hpp"
#include "wml_separators.hpp"
#include "formula_string_utils.hpp"
#include "scripting/lua.hpp"
#include "whiteboard/manager.hpp"
#include "widgets/combo.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/mouse_events.hpp
Expand Up @@ -18,6 +18,7 @@

#include "game_display.hpp"
#include "mouse_handler_base.hpp"
#include "unit_map.hpp"

class battle_context;

Expand Down
1 change: 1 addition & 0 deletions src/multiplayer_wait.cpp
Expand Up @@ -28,6 +28,7 @@
#include "statistics.hpp"
#include "saved_game.hpp"
#include "sound.hpp"
#include "unit_types.hpp"
#include "wml_exception.hpp"
#include "wml_separators.hpp"
#include "formula_string_utils.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/play_controller.cpp
Expand Up @@ -51,6 +51,7 @@
#include "soundsource.hpp"
#include "synced_context.hpp"
#include "tooltips.hpp"
#include "unit.hpp"
#include "unit_animation.hpp"
#include "unit_id.hpp"
#include "whiteboard/manager.hpp"
Expand Down
5 changes: 4 additions & 1 deletion src/play_controller.hpp
Expand Up @@ -19,13 +19,14 @@
#include "controller_base.hpp"
#include "game_end_exceptions.hpp"
#include "game_board.hpp"
#include "gamestatus.hpp"
#include "help.hpp"
#include "menu_events.hpp"
#include "mouse_events.hpp"
#include "persist_manager.hpp"
#include "statistics.hpp"
#include "tod_manager.hpp"
#include "gamestatus.hpp"
#include "unit_types.hpp"

#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
Expand All @@ -34,6 +35,8 @@ class game_display;
class saved_game;
class game_data;
class team;
class unit;
class unit_animation;

namespace actions {
class undo_list;
Expand Down
1 change: 1 addition & 0 deletions src/playsingle_controller.cpp
Expand Up @@ -45,6 +45,7 @@
#include "save_blocker.hpp"
#include "soundsource.hpp"
#include "storyscreen/interface.hpp"
#include "unit.hpp"
#include "unit_animation.hpp"
#include "util.hpp"
#include "whiteboard/manager.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/replay.cpp
Expand Up @@ -35,6 +35,7 @@
#include "synced_context.hpp"
#include "resources.hpp"
#include "statistics.hpp"
#include "unit.hpp"
#include "whiteboard/manager.hpp"

#include <boost/foreach.hpp>
Expand Down
9 changes: 5 additions & 4 deletions src/scripting/lua_api.cpp
Expand Up @@ -18,12 +18,13 @@
#include "lua/lualib.h"
#include "lua/lauxlib.h"

#include "variable.hpp"
#include "tstring.hpp"
#include "resources.hpp"
#include "config.hpp"
#include "game_display.hpp"
#include "log.hpp"
#include "config.hpp"
#include "resources.hpp"
#include "tstring.hpp"
#include "unit.hpp"
#include "variable.hpp"

#include <boost/bind.hpp>
#include <boost/foreach.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/whiteboard/side_actions.cpp
Expand Up @@ -39,6 +39,7 @@
#include "game_end_exceptions.hpp"
#include "map.hpp"
#include "resources.hpp"
#include "unit.hpp"

#include <boost/foreach.hpp>

Expand Down

0 comments on commit 1cc51de

Please sign in to comment.