#ifndef BILLYSHEET_ENDURANCE_HPP #define BILLYSHEET_ENDURANCE_HPP #include "characteristic.hpp" #include using json = nlohmann::json; namespace character::characteristic { class Endurance final : public Characteristic { public: Endurance() noexcept: Characteristic(2, 0, 0, 0) {}; Endurance(const std::uint32_t carac, const std::uint32_t materiel, const std::uint32_t additional) noexcept: Characteristic(2, carac, materiel, additional) {} ~Endurance() noexcept final = default; [[nodiscard]] std::uint32_t get_max_lp() const noexcept; friend void from_json(const json &j, Endurance &endurance) { nlohmann::from_json(j, static_cast(endurance)); } }; static void to_json(json &j, const Endurance &endurance) { to_json(j, static_cast(endurance)); } } #endif //BILLYSHEET_ENDURANCE_HPP