Compare commits

...

2 Commits

Author SHA1 Message Date
cc77744827
Constructors and destructors. 2022-01-10 21:34:54 +01:00
67967051f2
Max life point. 2022-01-10 21:28:29 +01:00
6 changed files with 35 additions and 4 deletions

View File

@ -4,11 +4,16 @@
#include <random>
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;
};
}

View File

@ -4,12 +4,17 @@
#include <cstdint>
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;
};
}

View File

@ -4,12 +4,17 @@
#include <cstdint>
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;
};
}

View File

@ -8,12 +8,19 @@
#include <cstdint>
namespace character::characteristic {
class Endurance {
class Endurance final {
private:
const std::uint32_t base{ 2 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
public:
Endurance() noexcept = default;
~Endurance() noexcept = default;
[[nodiscard]] std::uint32_t get_max_lp() const noexcept;
};
}

View File

@ -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;
};
}

View File

@ -1 +1,5 @@
#include "characteristic/endurance.hpp"
std::uint32_t character::characteristic::Endurance::get_max_lp() const noexcept {
return (base + carac + materiel + additional) * 3;
}