Skip to content

Commit

Permalink
Cleaned up inclusions of unit_types.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 20, 2016
1 parent 3d01dab commit e1d003f
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/ai/akihara/recruitment.cpp
Expand Up @@ -31,7 +31,7 @@
#include "unit.hpp"
#include "unit_display.hpp"
#include "unit_map.hpp"
#include "unit_types.hpp"
//#include "unit_types.hpp" used in the below commented-out code
#include "ai/composite/rca.hpp"
#include "ai/default/ai.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/ai/formula/function_table.cpp
Expand Up @@ -36,7 +36,6 @@
#include "terrain_filter.hpp"
#include "unit.hpp"
#include "pathfind/pathfind.hpp"
#include "unit_types.hpp"

#include <boost/foreach.hpp>

Expand Down
2 changes: 0 additions & 2 deletions src/editor/action/action_unit.hpp
Expand Up @@ -28,10 +28,8 @@

#include "editor/action/action.hpp"

#include "unit_types.hpp"
#include "unit.hpp"


namespace editor {


Expand Down
1 change: 0 additions & 1 deletion src/fake_unit_ptr.cpp
Expand Up @@ -17,7 +17,6 @@
#include "fake_unit_manager.hpp"
#include "unit.hpp"
#include "unit_ptr.hpp"
#include "unit_types.hpp"

#include <boost/swap.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/fake_unit_ptr.hpp
Expand Up @@ -16,7 +16,6 @@
#define INCL_FAKE_UNIT_HPP_

#include "unit_ptr.hpp"
#include "unit_types.hpp"

class fake_unit_manager;

Expand Down
1 change: 0 additions & 1 deletion src/game_events/conditional_wml.cpp
Expand Up @@ -33,7 +33,6 @@
#include "unit.hpp"
#include "unit_filter.hpp"
#include "unit_map.hpp"
#include "unit_types.hpp"
#include "util.hpp"
#include "variable.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/gui/dialogs/unit_attack.cpp
Expand Up @@ -37,7 +37,6 @@
#include "resources.hpp"
#include "team.hpp"
#include "unit.hpp"
#include "unit_types.hpp"

#include "utils/foreach.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/unit_create.hpp
Expand Up @@ -19,12 +19,12 @@
#include "gui/widgets/group.hpp"
#include "gui/widgets/text.hpp"
#include "race.hpp"
#include "unit_types.hpp"

#include <string>
#include <vector>

class display;
class unit_type;

namespace gui2
{
Expand Down
3 changes: 2 additions & 1 deletion src/gui/dialogs/unit_recruit.hpp
Expand Up @@ -16,7 +16,8 @@

#include "gui/dialogs/dialog.hpp"
#include "team.hpp"
#include "unit_types.hpp"

class unit_type;

namespace gui2 {

Expand Down
1 change: 1 addition & 0 deletions src/gui/widgets/unit_preview_pane.cpp
Expand Up @@ -34,6 +34,7 @@
#include "play_controller.hpp"
#include "resources.hpp"
#include "team.hpp"
#include "unit_types.hpp"

#include "utils/foreach.hpp"

Expand Down
3 changes: 2 additions & 1 deletion src/gui/widgets/unit_preview_pane.hpp
Expand Up @@ -16,10 +16,11 @@

#include "gui/auxiliary/widget_definition/unit_preview_pane.hpp"
#include "gui/widgets/container.hpp"
#include "unit_types.hpp"

#include <string>

class unit_type;

namespace gui2
{

Expand Down
1 change: 0 additions & 1 deletion src/mouse_events.cpp
Expand Up @@ -49,7 +49,6 @@
#include "unit.hpp" // for unit, intrusive_ptr_add_ref
#include "unit_animation_component.hpp"
#include "unit_ptr.hpp" // for unit_const_ptr
#include "unit_types.hpp" // for attack_type
#include "whiteboard/manager.hpp" // for manager, etc
#include "whiteboard/typedefs.hpp" // for whiteboard_lock
#include "wml_separators.hpp" // for COLUMN_SEPARATOR, etc
Expand Down
1 change: 0 additions & 1 deletion src/play_controller.cpp
Expand Up @@ -61,7 +61,6 @@
#include "tooltips.hpp"
#include "unit.hpp"
#include "unit_id.hpp"
#include "unit_types.hpp"
#include "whiteboard/manager.hpp"
#include "wml_exception.hpp"

Expand Down
2 changes: 0 additions & 2 deletions src/tests/gui/test_save_dialog.cpp
Expand Up @@ -23,8 +23,6 @@
#include "key.hpp"
#include "filesystem.hpp"
#include "savegame.hpp"
#include "unit_types.hpp"
//

#include <SDL.h>

Expand Down

0 comments on commit e1d003f

Please sign in to comment.