Begin to prototype many things.

This commit is contained in:
Pcornat 2022-01-17 19:57:00 +01:00
commit 84450d25af
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
14 changed files with 176 additions and 9 deletions

View file

@ -7,9 +7,14 @@
#include "characteristic/habilete.hpp"
#include <random>
namespace gui {
class Gui;
}
namespace character {
class CharacterSheet final {
private:
friend gui::Gui;
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
std::string caractere{};
@ -70,7 +75,7 @@ namespace character {
}
};
void to_json(json &j, const CharacterSheet &billy) {
static void to_json(json &j, const CharacterSheet &billy) {
j["caractere"] = billy.get_caractere();
j["adresse"] = billy.get_adresse();
j["endurance"] = billy.get_endurance();