Skip to content

Commit

Permalink
refactor: extract vehicle_part to header
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Sep 16, 2023
1 parent 88bbc1d commit d1b5233
Show file tree
Hide file tree
Showing 99 changed files with 418 additions and 302 deletions.
1 change: 1 addition & 0 deletions src/action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "ui.h"
#include "ui_manager.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const quality_id qual_BUTCHER( "BUTCHER" );
Expand Down
1 change: 1 addition & 0 deletions src/active_tile_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "mapbuffer.h"
#include "rng.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_range.h"
#include "weather.h"

Expand Down
1 change: 1 addition & 0 deletions src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include "uistate.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const itype_id itype_bone_human( "bone_human" );
Expand Down
1 change: 1 addition & 0 deletions src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
#include "value_ptr.h"
#include "veh_interact.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const activity_id ACT_ADV_INVENTORY( "ACT_ADV_INVENTORY" );
Expand Down
1 change: 1 addition & 0 deletions src/activity_item_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "vpart_position.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/advanced_inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include "units.h"
#include "units_utility.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"

#if defined(__ANDROID__)
Expand Down
1 change: 1 addition & 0 deletions src/advanced_inv_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "uistate.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

int advanced_inv_area::get_item_count() const
Expand Down
1 change: 1 addition & 0 deletions src/advanced_inv_pane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "uistate.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"

#if defined(__ANDROID__)
# include <SDL_keyboard.h>
Expand Down
1 change: 1 addition & 0 deletions src/avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "ui.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const activity_id ACT_READ( "ACT_READ" );
Expand Down
1 change: 1 addition & 0 deletions src/avatar_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

class player;
Expand Down
1 change: 1 addition & 0 deletions src/avatar_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "trap.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const trait_id trait_CHLOROMORPH( "CHLOROMORPH" );
Expand Down
1 change: 1 addition & 0 deletions src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#include "units_utility.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather.h"
#include "weather_gen.h"
Expand Down
1 change: 1 addition & 0 deletions src/cata_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "type_id.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather.h"
#include "weighted_list.h"
Expand Down
1 change: 1 addition & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
#include "veh_interact.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "vitamin.h"
#include "vpart_position.h"
Expand Down
1 change: 1 addition & 0 deletions src/character_effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "trap.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather_gen.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/character_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "uistate.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "vpart_position.h"
#include "weather_gen.h"
Expand Down
1 change: 1 addition & 0 deletions src/character_turn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "trap.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather_gen.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/clzones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "ui.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const std::string flag_FIREWOOD( "FIREWOOD" );
Expand Down
1 change: 1 addition & 0 deletions src/condition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "string_id.h"
#include "type_id.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

class basecamp;
Expand Down
1 change: 1 addition & 0 deletions src/construction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include "units_serde.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const activity_id ACT_BUILD( "ACT_BUILD" );
Expand Down
1 change: 1 addition & 0 deletions src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "vpart_position.h"

Expand Down
1 change: 1 addition & 0 deletions src/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "translations.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const ammo_effect_str_id ammo_effect_APPLY_SAP( "APPLY_SAP" );
Expand Down
1 change: 1 addition & 0 deletions src/debug_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
#include "units_utility.h"
#include "url_utility.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "veh_type.h"
#include "vitamin.h"
#include "vpart_position.h"
Expand Down
1 change: 1 addition & 0 deletions src/distribution_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void distribution_grid::update( time_point to )

// TODO: Shouldn't be here
#include "vehicle.h"
#include "vehicle_part.h"
static itype_id itype_battery( "battery" );
int distribution_grid::mod_resource( int amt, bool recurse )
{
Expand Down
1 change: 1 addition & 0 deletions src/dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vitamin.h"

static const std::string flag_VARSIZE( "VARSIZE" );
Expand Down
1 change: 1 addition & 0 deletions src/editmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "ui_manager.h"
#include "uistate.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static constexpr tripoint editmap_boundary_min( 0, 0, -OVERMAP_DEPTH );
Expand Down
1 change: 1 addition & 0 deletions src/explosion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include "units.h"
#include "ui_manager.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const ammo_effect_str_id ammo_effect_NULL_SOURCE( "NULL_SOURCE" );
Expand Down
1 change: 1 addition & 0 deletions src/faction_camp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "vpart_range.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
#include "veh_interact.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "vpart_range.h"
#include "wcwidth.h"
Expand Down
1 change: 1 addition & 0 deletions src/gates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "type_id.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

// Gates namespace
Expand Down
1 change: 1 addition & 0 deletions src/grab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "point.h"
#include "sounds.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "debug.h"
#include "rng.h"
Expand Down
1 change: 1 addition & 0 deletions src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
#include "units.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "vpart_range.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/handle_liquid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "type_id.h"
#include "ui.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "vpart_range.h"

Expand Down
1 change: 1 addition & 0 deletions src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
#include "units_utility.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather.h"

Expand Down
1 change: 1 addition & 0 deletions src/inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "options.h"
#include "translations.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "calendar.h"
#include "character.h"
Expand Down
1 change: 1 addition & 0 deletions src/inventory_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "ui_manager.h"
#include "units_utility.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "visitable.h"
#include "vpart_position.h"
Expand Down
1 change: 1 addition & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
#include "units_utility.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vitamin.h"
#include "vpart_position.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/item_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "string_formatter.h"
#include "translations.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "visitable.h"
#include "vpart_position.h"
Expand Down
1 change: 1 addition & 0 deletions src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "visitable.h"
#include "vpart_position.h"
Expand Down
1 change: 1 addition & 0 deletions src/iuse_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#include "units_utility.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_selector.h"
#include "visitable.h"
#include "vitamin.h"
Expand Down
1 change: 1 addition & 0 deletions src/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "type_id.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "vpart_range.h"
#include "weather.h"
Expand Down
1 change: 1 addition & 0 deletions src/magic_spell_effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include "type_id.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const ammo_effect_str_id ammo_effect_magic( "magic" );
Expand Down
1 change: 1 addition & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "visitable.h"
#include "vpart_position.h"
#include "vpart_range.h"
Expand Down
1 change: 1 addition & 0 deletions src/map_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include "units.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_group.h"
#include "vpart_position.h"
#include "vpart_range.h"
Expand Down
1 change: 1 addition & 0 deletions src/map_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include "type_id.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weather.h"

Expand Down
1 change: 1 addition & 0 deletions src/mapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#include "trap.h"
#include "value_ptr.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vehicle_group.h"
#include "vpart_position.h"
#include "vpart_range.h"
Expand Down
1 change: 1 addition & 0 deletions src/mattack_actors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "sounds.h"
#include "translations.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_range.h"

static const efftype_id effect_badpoison( "badpoison" );
Expand Down
1 change: 1 addition & 0 deletions src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include "type_id.h"
#include "units.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"
#include "weighted_list.h"

Expand Down
1 change: 1 addition & 0 deletions src/monmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "translations.h"
#include "trap.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "vpart_position.h"

static const efftype_id effect_ai_waiting( "ai_waiting" );
Expand Down
1 change: 1 addition & 0 deletions src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#include "value_ptr.h"
#include "veh_type.h"
#include "vehicle.h"
#include "vehicle_part.h"
#include "visitable.h"
#include "vpart_position.h"
#include "vpart_range.h"
Expand Down
Loading

0 comments on commit d1b5233

Please sign in to comment.