From ea1206e58cd3445e6170eec4b4895edb33e104ca Mon Sep 17 00:00:00 2001 From: Pcornat Date: Fri, 27 Feb 2026 20:35:51 +0100 Subject: [PATCH] Add documentation --- include/characteristic.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/characteristic.hpp b/include/characteristic.hpp index a453040..3a144db 100644 --- a/include/characteristic.hpp +++ b/include/characteristic.hpp @@ -12,6 +12,10 @@ namespace character { } namespace character::characteristic { + + /*! + * \brief Different characteristic type + */ enum class characType : std::uint8_t { Adresse = 0, Endurance = 1, @@ -19,16 +23,34 @@ namespace character::characteristic { Habilete = 3 }; + /*! + * \brief This class represents a characteristic for Billy (one of characType) + */ class Characteristic { protected: friend BillyObjects; using defaultValue = std::numeric_limits; + + //! Total point for this charac mutable std::int32_t total{ defaultValue::max() }; + + //! Base value const std::uint32_t base{ 0 }; + + //! Value depending of the characType for this characteristic. std::uint32_t carac{ 0 }; + + //! Value changed from a billyObjects (billyEnums) possessed std::uint32_t materiel{ 0 }; + + //! Additional value when creating the character std::uint32_t additional{ 0 }; + /*! + * \brief Get base value depending of the characType + * \param inType Characteristic type used to get base number + * \return Base value depending of the characType + */ static constexpr std::uint32_t get_base(const characType inType) noexcept { switch (inType) { case characType::Adresse: