aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/Leader.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-03-20 23:30:48 +0100
committer GitHub <noreply@github.com>2024-03-20 23:30:48 +0100
commiteece77afebf0e4d36b4c9ace3b1044f2c3da50f1 (patch)
treed5b186facf7c3a08e6ccf2e8261b7de054957a41 /src/openvic-simulation/military/Leader.hpp
parent2c892c99a6647be15ef23cabf6cc40f08769283d (diff)
parent023860d53a90774dcdba84ad7c0dca3c944c9a49 (diff)
Merge pull request #147 from OpenVicProject/military-units
Military unit instance
Diffstat (limited to 'src/openvic-simulation/military/Leader.hpp')
-rw-r--r--src/openvic-simulation/military/Leader.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/openvic-simulation/military/Leader.hpp b/src/openvic-simulation/military/Leader.hpp
new file mode 100644
index 0000000..180fd39
--- /dev/null
+++ b/src/openvic-simulation/military/Leader.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "openvic-simulation/military/LeaderTrait.hpp"
+#include "openvic-simulation/military/UnitType.hpp"
+
+namespace OpenVic {
+ struct Leader {
+ private:
+ std::string PROPERTY(name);
+ UnitType::branch_t PROPERTY(branch); /* type in defines */
+ Date PROPERTY(date);
+ LeaderTrait const* PROPERTY(personality);
+ LeaderTrait const* PROPERTY(background);
+ fixed_point_t PROPERTY(prestige);
+ std::string PROPERTY(picture);
+
+ public:
+ 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
+ );
+ };
+} \ No newline at end of file