Constructors and destructors.

This commit is contained in:
Pcornat 2022-01-10 21:34:54 +01:00
parent 67967051f2
commit cc77744827
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0
4 changed files with 23 additions and 3 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

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