diff options
author | zaaarf <me@zaaarf.foo> | 2024-02-12 12:15:04 +0100 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2024-03-16 14:01:15 +0100 |
commit | 023860d53a90774dcdba84ad7c0dca3c944c9a49 (patch) | |
tree | d5b186facf7c3a08e6ccf2e8261b7de054957a41 /src/openvic-simulation/military/Leader.hpp | |
parent | 2c892c99a6647be15ef23cabf6cc40f08769283d (diff) |
feat: unit instance type definition, renamed existing structs for consistencymilitary-units
Diffstat (limited to 'src/openvic-simulation/military/Leader.hpp')
-rw-r--r-- | src/openvic-simulation/military/Leader.hpp | 23 |
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 |