Cleaner includes
This commit is contained in:
parent
1f18499228
commit
e2d598d5d0
8 changed files with 130 additions and 130 deletions
|
|
@ -9,7 +9,6 @@
|
|||
#include <variant>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include "characteristic/characteristic.hpp"
|
||||
|
||||
// helper type for the visitor
|
||||
template<typename... Ts>
|
||||
|
|
@ -18,6 +17,10 @@ template<typename... Ts>
|
|||
overloaded(Ts...) -> overloaded<Ts...>;
|
||||
|
||||
namespace character {
|
||||
namespace characteristic {
|
||||
enum class characType : std::uint8_t;
|
||||
}
|
||||
|
||||
using namespace std::string_literals;
|
||||
|
||||
enum class weapons : std::uint8_t {
|
||||
|
|
@ -59,7 +62,7 @@ namespace character {
|
|||
|
||||
[[nodiscard]] virtual std::uint32_t add_damage() const noexcept = 0;
|
||||
|
||||
[[nodiscard]] virtual std::int32_t add_materiel(const characteristic::characType inType) const noexcept = 0;
|
||||
[[nodiscard]] virtual std::int32_t add_materiel(const characteristic::characType &inType) const noexcept = 0;
|
||||
|
||||
[[nodiscard]] virtual std::string_view to_string() const noexcept = 0;
|
||||
|
||||
|
|
@ -84,7 +87,7 @@ namespace character {
|
|||
|
||||
[[nodiscard]] std::uint32_t add_damage() const noexcept final;
|
||||
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType inType) const noexcept final;
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType &inType) const noexcept final;
|
||||
|
||||
[[nodiscard]] std::string_view to_string() const noexcept final;
|
||||
|
||||
|
|
@ -107,7 +110,7 @@ namespace character {
|
|||
|
||||
[[nodiscard]] std::uint32_t add_damage() const noexcept final;
|
||||
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType inType) const noexcept final;
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType &inType) const noexcept final;
|
||||
|
||||
[[nodiscard]] std::string_view to_string() const noexcept final;
|
||||
|
||||
|
|
@ -130,7 +133,7 @@ namespace character {
|
|||
|
||||
[[nodiscard]] std::uint32_t add_damage() const noexcept final;
|
||||
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType inType) const noexcept final;
|
||||
[[nodiscard]] std::int32_t add_materiel(const characteristic::characType &inType) const noexcept final;
|
||||
|
||||
[[nodiscard]] std::string_view to_string() const noexcept final;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue