Changing class name and filename.
Character sheet fields finished.
This commit is contained in:
parent
cc77744827
commit
dd72b1cf40
@ -22,7 +22,7 @@ set(SOURCE_HEADERS
|
|||||||
include/gui.hpp
|
include/gui.hpp
|
||||||
include/gui_data.hpp
|
include/gui_data.hpp
|
||||||
include/window.hpp
|
include/window.hpp
|
||||||
include/billy_sheet.hpp
|
include/character_sheet.hpp
|
||||||
include/characteristic/habilete.hpp
|
include/characteristic/habilete.hpp
|
||||||
include/characteristic/adresse.hpp
|
include/characteristic/adresse.hpp
|
||||||
include/characteristic/endurance.hpp
|
include/characteristic/endurance.hpp
|
||||||
@ -40,7 +40,7 @@ set(SOURCE_FILES
|
|||||||
src/gui.cpp
|
src/gui.cpp
|
||||||
src/gui_data.cpp
|
src/gui_data.cpp
|
||||||
src/window.cpp
|
src/window.cpp
|
||||||
src/billy_sheet.cpp
|
src/character_sheet.cpp
|
||||||
src/characteristic/adresse.cpp
|
src/characteristic/adresse.cpp
|
||||||
src/characteristic/endurance.cpp
|
src/characteristic/endurance.cpp
|
||||||
src/characteristic/chance.cpp
|
src/characteristic/chance.cpp
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
#ifndef BILLYSHEET_BILLY_SHEET_HPP
|
|
||||||
#define BILLYSHEET_BILLY_SHEET_HPP
|
|
||||||
|
|
||||||
#include <random>
|
|
||||||
|
|
||||||
namespace character {
|
|
||||||
class BillySheet final {
|
|
||||||
private:
|
|
||||||
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
|
|
||||||
|
|
||||||
std::string caractere{};
|
|
||||||
|
|
||||||
public:
|
|
||||||
BillySheet() = default;
|
|
||||||
|
|
||||||
~BillySheet() noexcept = default;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif //BILLYSHEET_BILLY_SHEET_HPP
|
|
42
include/character_sheet.hpp
Normal file
42
include/character_sheet.hpp
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#ifndef BILLYSHEET_CHARACTER_SHEET_HPP
|
||||||
|
#define BILLYSHEET_CHARACTER_SHEET_HPP
|
||||||
|
|
||||||
|
#include "characteristic/adresse.hpp"
|
||||||
|
#include "characteristic/endurance.hpp"
|
||||||
|
#include "characteristic/chance.hpp"
|
||||||
|
#include "characteristic/habilete.hpp"
|
||||||
|
#include <random>
|
||||||
|
|
||||||
|
namespace character {
|
||||||
|
class CharacterSheet final {
|
||||||
|
private:
|
||||||
|
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
|
||||||
|
|
||||||
|
std::string caractere{};
|
||||||
|
|
||||||
|
characteristic::Adresse adresse;
|
||||||
|
|
||||||
|
characteristic::Endurance endurance;
|
||||||
|
|
||||||
|
characteristic::Chance chance;
|
||||||
|
|
||||||
|
characteristic::Habilete habilete;
|
||||||
|
|
||||||
|
std::uint32_t health_point{ 0 };
|
||||||
|
|
||||||
|
std::uint32_t armor{ 0 };
|
||||||
|
|
||||||
|
std::uint32_t damage{ 0 };
|
||||||
|
|
||||||
|
std::uint32_t glory{ 0 };
|
||||||
|
|
||||||
|
std::uint32_t money{ 0 };
|
||||||
|
public:
|
||||||
|
CharacterSheet() = default;
|
||||||
|
|
||||||
|
~CharacterSheet() noexcept = default;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif //BILLYSHEET_CHARACTER_SHEET_HPP
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef BILLYSHEET_GUI_DATA_HPP
|
#ifndef BILLYSHEET_GUI_DATA_HPP
|
||||||
#define BILLYSHEET_GUI_DATA_HPP
|
#define BILLYSHEET_GUI_DATA_HPP
|
||||||
|
|
||||||
#include "billy_sheet.hpp"
|
#include "character_sheet.hpp"
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
@ -11,7 +11,7 @@ namespace gui {
|
|||||||
private:
|
private:
|
||||||
Window &window;
|
Window &window;
|
||||||
|
|
||||||
character::BillySheet billy;
|
character::CharacterSheet billy;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GuiData() = delete;
|
GuiData() = delete;
|
||||||
|
@ -1 +0,0 @@
|
|||||||
#include "billy_sheet.hpp"
|
|
1
src/character_sheet.cpp
Normal file
1
src/character_sheet.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "character_sheet.hpp"
|
Loading…
Reference in New Issue
Block a user