Adding main characteristics

This commit is contained in:
Pcornat 2022-01-10 21:16:05 +01:00
parent 029acbbbb3
commit 4b5ec33d74
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
14 changed files with 124 additions and 8 deletions

16
include/billy_sheet.hpp Normal file
View file

@ -0,0 +1,16 @@
#ifndef BILLYSHEET_BILLY_SHEET_HPP
#define BILLYSHEET_BILLY_SHEET_HPP
#include <random>
namespace character {
class BillySheet {
private:
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
std::string caractere{};
};
}
#endif //BILLYSHEET_BILLY_SHEET_HPP

View file

@ -0,0 +1,17 @@
#ifndef BILLYSHEET_ADRESSE_HPP
#define BILLYSHEET_ADRESSE_HPP
#include <cstdint>
namespace character::characteristic {
class Adresse {
private:
const std::uint32_t base{ 1 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
};
}
#endif //BILLYSHEET_ADRESSE_HPP

View file

@ -0,0 +1,17 @@
#ifndef BILLYSHEET_CHANCE_HPP
#define BILLYSHEET_CHANCE_HPP
#include <cstdint>
namespace character::characteristic {
class Chance {
private:
const std::uint32_t base{ 3 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
};
}
#endif //BILLYSHEET_CHANCE_HPP

View file

@ -0,0 +1,21 @@
//
// Created by postaron on 10/01/2022.
//
#ifndef BILLYSHEET_ENDURANCE_HPP
#define BILLYSHEET_ENDURANCE_HPP
#include <cstdint>
namespace character::characteristic {
class Endurance {
private:
const std::uint32_t base{ 2 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
};
}
#endif //BILLYSHEET_ENDURANCE_HPP

View file

@ -0,0 +1,17 @@
#ifndef BILLYSHEET_HABILETE_HPP
#define BILLYSHEET_HABILETE_HPP
#include <cstdint>
namespace character::characteristic {
class Habilete final {
private:
const std::uint32_t base{ 2 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
};
}
#endif //BILLYSHEET_HABILETE_HPP

View file

@ -1,6 +1,8 @@
#ifndef BILLYSHEET_GUI_DATA_HPP
#define BILLYSHEET_GUI_DATA_HPP
#include "billy_sheet.hpp"
#include <spdlog/spdlog.h>
namespace gui {
class Window;
@ -9,10 +11,12 @@ namespace gui {
private:
Window &window;
character::BillySheet billy;
public:
GuiData() = delete;
explicit GuiData(Window &wwindow) : window(wwindow) {}
explicit GuiData(Window &wwindow) : window(wwindow) { SPDLOG_DEBUG("Creating GUI Data"); }
[[nodiscard]] Window &get_window() const;