From 023860d53a90774dcdba84ad7c0dca3c944c9a49 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 12 Feb 2024 12:15:04 +0100 Subject: feat: unit instance type definition, renamed existing structs for consistency --- src/openvic-simulation/military/Leader.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/openvic-simulation/military/Leader.hpp (limited to 'src/openvic-simulation/military/Leader.hpp') 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 -- cgit v1.2.3-56-ga3b1