From cc77744827e6261c6c56ef5f16c3edee33525118 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Mon, 10 Jan 2022 21:34:54 +0100 Subject: [PATCH] Constructors and destructors. --- include/billy_sheet.hpp | 7 ++++++- include/characteristic/adresse.hpp | 7 ++++++- include/characteristic/chance.hpp | 7 ++++++- include/characteristic/habilete.hpp | 5 +++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/include/billy_sheet.hpp b/include/billy_sheet.hpp index da15641..b0a8a49 100644 --- a/include/billy_sheet.hpp +++ b/include/billy_sheet.hpp @@ -4,11 +4,16 @@ #include namespace character { - class BillySheet { + class BillySheet final { private: std::mt19937_64 engine{ std::random_device{ "rdseed" }() }; std::string caractere{}; + + public: + BillySheet() = default; + + ~BillySheet() noexcept = default; }; } diff --git a/include/characteristic/adresse.hpp b/include/characteristic/adresse.hpp index a30f6d8..ab2fdb2 100644 --- a/include/characteristic/adresse.hpp +++ b/include/characteristic/adresse.hpp @@ -4,12 +4,17 @@ #include namespace character::characteristic { - class Adresse { + class Adresse final { private: const std::uint32_t base{ 1 }; std::uint32_t carac{ 0 }; std::uint32_t materiel{ 0 }; std::uint32_t additional{ 0 }; + + public: + Adresse() noexcept = default; + + ~Adresse() noexcept = default; }; } diff --git a/include/characteristic/chance.hpp b/include/characteristic/chance.hpp index 5ea3df5..22ff7ec 100644 --- a/include/characteristic/chance.hpp +++ b/include/characteristic/chance.hpp @@ -4,12 +4,17 @@ #include namespace character::characteristic { - class Chance { + class Chance final { private: const std::uint32_t base{ 3 }; std::uint32_t carac{ 0 }; std::uint32_t materiel{ 0 }; std::uint32_t additional{ 0 }; + + public: + Chance() noexcept = default; + + ~Chance() noexcept = default; }; } diff --git a/include/characteristic/habilete.hpp b/include/characteristic/habilete.hpp index fc93a1f..6caffd2 100644 --- a/include/characteristic/habilete.hpp +++ b/include/characteristic/habilete.hpp @@ -10,6 +10,11 @@ namespace character::characteristic { std::uint32_t carac{ 0 }; std::uint32_t materiel{ 0 }; std::uint32_t additional{ 0 }; + + public: + Habilete() noexcept = default; + + ~Habilete() noexcept = default; }; }