diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | fc06bedef3f5521a97989ebb6c7160744c640a19 (patch) | |
tree | 61b57b4badca81d3c8e03aa57b65f494167685e6 /src/set_component.hpp | |
parent | 8bc99186e42dbb1b1c0b840f982fe3af913c3e14 (diff) |
Change set_type to non-POD type
Diffstat (limited to 'src/set_component.hpp')
-rw-r--r-- | src/set_component.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/set_component.hpp b/src/set_component.hpp new file mode 100644 index 00000000..ceb82cbd --- /dev/null +++ b/src/set_component.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "h-basic.h" + +#include <array> +#include <cstdint> + +constexpr std::size_t SET_MAX_SIZE = 6; + +struct set_component { + bool_ present = FALSE; /* Is it actually wore ? */ + s16b a_idx = 0; /* What artifact? */ + std::array<s16b, SET_MAX_SIZE> pval; /* Pval for each combination */ + std::array<u32b, SET_MAX_SIZE> flags1; /* Flags */ + std::array<u32b, SET_MAX_SIZE> flags2; /* Flags */ + std::array<u32b, SET_MAX_SIZE> flags3; /* Flags */ + std::array<u32b, SET_MAX_SIZE> flags4; /* Flags */ + std::array<u32b, SET_MAX_SIZE> flags5; /* Flags */ + std::array<u32b, SET_MAX_SIZE> esp; /* Flags */ +}; |