remove unnecessary resources.hpp include from unit.hpp
It turned out that alot of compilation units were using resources but not including the header, and only getting circuitously through the display.hpp header which got it from unit.hpp. This is an improvement since unit itself doesn't need the header, and most classes probably don't either.
This commit is contained in:
parent
85de1c2c55
commit
1796b4d7a0
14 changed files with 15 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "wml_exception.hpp"
|
||||
|
||||
#include "dialogs.hpp"
|
||||
#include "resources.hpp"
|
||||
|
||||
#include "../clipboard.hpp"
|
||||
#include "../game_preferences.hpp"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
*/
|
||||
#define GETTEXT_DOMAIN "wesnoth-editor"
|
||||
|
||||
#include "resources.hpp"
|
||||
#include "team.hpp"
|
||||
|
||||
#include "context_manager.hpp"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "gettext.hpp"
|
||||
#include "map_exception.hpp"
|
||||
#include "map_label.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "serialization/binary_or_text.hpp"
|
||||
#include "serialization/parser.hpp"
|
||||
#include "team.hpp"
|
||||
|
|
|
@ -22,6 +22,7 @@ class tod_manager;
|
|||
class team;
|
||||
class unit;
|
||||
class unit_map;
|
||||
class game_board;
|
||||
|
||||
#include "animated.hpp"
|
||||
#include "chat_events.hpp"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "log.hpp"
|
||||
#include "map.hpp"
|
||||
#include "marked-up_text.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "unit.hpp"
|
||||
#include "unit_helper.hpp"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
//#include "display.hpp"
|
||||
//#include "gettext.hpp"
|
||||
#include "marked-up_text.hpp"
|
||||
#include "resources.hpp"
|
||||
//
|
||||
//#include <boost/foreach.hpp>
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "image.hpp"
|
||||
#include "log.hpp"
|
||||
#include "map.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "sdl/utils.hpp"
|
||||
|
||||
#include "team.hpp"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "log.hpp"
|
||||
#include "mp_options.hpp"
|
||||
#include "replay.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "savegame.hpp"
|
||||
#include "tod_manager.hpp"
|
||||
#include "unit_id.hpp"
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "multiplayer_lobby.hpp"
|
||||
#include "playcampaign.hpp"
|
||||
#include "playmp_controller.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "unit_id.hpp"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "map.hpp"
|
||||
#include "multiplayer_ui.hpp"
|
||||
#include "mp_game_utils.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "tod_manager.hpp"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "generators/map_create.hpp"
|
||||
#include "map_exception.hpp"
|
||||
#include "minimap.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "saved_game.hpp"
|
||||
#include "wml_separators.hpp"
|
||||
#include "wml_exception.hpp"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "marked-up_text.hpp"
|
||||
#include "mp_game_utils.hpp"
|
||||
#include "multiplayer_wait.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "saved_game.hpp"
|
||||
#include "sound.hpp"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "terrain_filter.hpp"
|
||||
#include "formula_string_utils.hpp"
|
||||
#include "random_new.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "scripting/lua.hpp"
|
||||
#include "side_filter.hpp"
|
||||
#include "play_controller.hpp"
|
||||
|
|
|
@ -21,14 +21,14 @@
|
|||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#include "formula_callable.hpp"
|
||||
#include "resources.hpp"
|
||||
#include "unit_animation.hpp"
|
||||
#include "unit_types.hpp"
|
||||
#include "unit_map.hpp"
|
||||
|
||||
class display;
|
||||
class vconfig;
|
||||
class gamemap;
|
||||
class team;
|
||||
class vconfig;
|
||||
|
||||
/// The things contained within a unit_ability_list.
|
||||
typedef std::pair<const config *, map_location> unit_ability;
|
||||
|
|
Loading…
Add table
Reference in a new issue