Adding main characteristics
This commit is contained in:
parent
029acbbbb3
commit
4b5ec33d74
14 changed files with 124 additions and 8 deletions
16
include/billy_sheet.hpp
Normal file
16
include/billy_sheet.hpp
Normal 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
|
17
include/characteristic/adresse.hpp
Normal file
17
include/characteristic/adresse.hpp
Normal 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
|
17
include/characteristic/chance.hpp
Normal file
17
include/characteristic/chance.hpp
Normal 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
|
21
include/characteristic/endurance.hpp
Normal file
21
include/characteristic/endurance.hpp
Normal 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
|
17
include/characteristic/habilete.hpp
Normal file
17
include/characteristic/habilete.hpp
Normal 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
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue