aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/Deployment.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-24 09:49:36 +0100
committer GitHub <noreply@github.com>2024-01-24 09:49:36 +0100
commit76d9463cc1a72c24592f79d3d7a9c8e337165d8c (patch)
treef251fc210fabef585cce802c410da78ab68f59d8 /src/openvic-simulation/military/Deployment.hpp
parent6bcb1e70a15755ceb0aaa13a080f85f8edb50911 (diff)
parent13d652813e2a662875b0364ec0d1bfe99e9004d6 (diff)
Merge pull request #138 from OpenVicProject/unit-rework
Reworked Units and added IdentifierPointerRegistry
Diffstat (limited to 'src/openvic-simulation/military/Deployment.hpp')
-rw-r--r--src/openvic-simulation/military/Deployment.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/openvic-simulation/military/Deployment.hpp b/src/openvic-simulation/military/Deployment.hpp
index a952823..e774108 100644
--- a/src/openvic-simulation/military/Deployment.hpp
+++ b/src/openvic-simulation/military/Deployment.hpp
@@ -16,7 +16,7 @@ namespace OpenVic {
struct Leader {
private:
std::string PROPERTY(name);
- Unit::type_t PROPERTY(type);
+ Unit::branch_t PROPERTY(branch); /* type in defines */
Date PROPERTY(date);
LeaderTrait const* PROPERTY(personality);
LeaderTrait const* PROPERTY(background);
@@ -25,7 +25,7 @@ namespace OpenVic {
public:
Leader(
- std::string_view new_name, Unit::type_t new_type, Date new_date, LeaderTrait const* new_personality,
+ std::string_view new_name, Unit::branch_t new_branch, Date new_date, LeaderTrait const* new_personality,
LeaderTrait const* new_background, fixed_point_t new_prestige, std::string_view new_picture
);
};
@@ -33,20 +33,20 @@ namespace OpenVic {
struct Regiment {
private:
std::string PROPERTY(name);
- Unit const* PROPERTY(type);
+ LandUnit const* PROPERTY(type);
Province const* PROPERTY(home);
public:
- Regiment(std::string_view new_name, Unit const* new_type, Province const* new_home);
+ Regiment(std::string_view new_name, LandUnit const* new_type, Province const* new_home);
};
struct Ship {
private:
- std::string PROPERTY(name);
- Unit const* PROPERTY(type);
+ std::string PROPERTY(name);
+ NavalUnit const* PROPERTY(type);
public:
- Ship(std::string_view new_name, Unit const* new_type);
+ Ship(std::string_view new_name, NavalUnit const* new_type);
};
struct Army {