• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / Vic3ToHoI4 / 4189923376

pending completion
4189923376

Pull #265

github

GitHub
Merge e4a325e0a into eb87403de
Pull Request #265: Convert technology

154 of 154 new or added lines in 16 files covered. (100.0%)

1607 of 1796 relevant lines covered (89.48%)

86692.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.27
/src/hoi4_world/map/hoi4_building.h
1
#ifndef SRC_HOI4WORLD_MAP_BUILDING_H
2
#define SRC_HOI4WORLD_MAP_BUILDING_H
3

4

5

6
#include <optional>
7
#include <string>
8

9
#include "src/hoi4_world/map/building_position.h"
10

11

12

13
namespace hoi4
14
{
15

16
class Building
17
{
18
  public:
19
   Building(int state_id,
×
20
       std::string type,
21
       BuildingPosition position,
22
       std::optional<int> connecting_sea_province = std::nullopt):
×
23
       state_id_(state_id),
×
24
       type_(std::move(type)),
×
25
       position_(std::move(position)),
×
26
       connecting_sea_province_(std::move(connecting_sea_province))
×
27
   {
28
   }
×
29

30
   bool operator==(const Building&) const = default;
31

32
   [[nodiscard]] int GetStateId() const { return state_id_; }
20✔
33
   [[nodiscard]] std::string GetType() const { return type_; }
×
34
   [[nodiscard]] BuildingPosition GetPosition() const { return position_; }
58✔
35
   [[nodiscard]] std::optional<int> GetConnectingSeaProvince() const { return connecting_sea_province_; }
15✔
36

37
  private:
38
   int state_id_ = 0;
39
   std::string type_;
40
   BuildingPosition position_;
41
   std::optional<int> connecting_sea_province_;
42
};
43

44
}  // namespace hoi4
45

46

47

48
#endif  // SRC_HOI4WORLD_MAP_BUILDING_H
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc