aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/Leader.cpp
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-02-12 12:15:04 +0100
committer zaaarf <me@zaaarf.foo>2024-03-16 14:01:15 +0100
commit023860d53a90774dcdba84ad7c0dca3c944c9a49 (patch)
treed5b186facf7c3a08e6ccf2e8261b7de054957a41 /src/openvic-simulation/military/Leader.cpp
parent2c892c99a6647be15ef23cabf6cc40f08769283d (diff)
feat: unit instance type definition, renamed existing structs for consistencymilitary-units
Diffstat (limited to 'src/openvic-simulation/military/Leader.cpp')
-rw-r--r--src/openvic-simulation/military/Leader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvic-simulation/military/Leader.cpp b/src/openvic-simulation/military/Leader.cpp
new file mode 100644
index 0000000..d6be36f
--- /dev/null
+++ b/src/openvic-simulation/military/Leader.cpp
@@ -0,0 +1,9 @@
+#include "Leader.hpp"
+
+using namespace OpenVic;
+
+Leader::Leader(
+ std::string_view new_name, UnitType::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
+) : name { new_name }, branch { new_branch }, date { new_date }, personality { new_personality }, background { new_background },
+ prestige { new_prestige }, picture { new_picture } {} \ No newline at end of file