diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 13:37:02 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 13:37:02 +0200 |
commit | 073ad3584fbf781ce10bef61ad4ff38850282f47 (patch) | |
tree | eb2db284b91ad7987655401406a2d57843337875 /src/player_class.hpp | |
parent | b9e4f471c2e23283945ba9324912c7e29dd8fbd8 (diff) |
Rework TR{1,2,3,4,5}_* flags to flag_set<>
Diffstat (limited to 'src/player_class.hpp')
-rw-r--r-- | src/player_class.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/player_class.hpp b/src/player_class.hpp index c5fc8916..98414158 100644 --- a/src/player_class.hpp +++ b/src/player_class.hpp @@ -2,6 +2,7 @@ #include "body.hpp" #include "h-basic.h" +#include "object_flag_set.hpp" #include "player_defs.hpp" #include "player_spec.hpp" @@ -78,12 +79,7 @@ struct player_class char body_parts[BODY_MAX] { }; /* To help to decide what to use when body changing */ - u32b oflags1[PY_MAX_LEVEL + 1] { }; - u32b oflags2[PY_MAX_LEVEL + 1] { }; - u32b oflags3[PY_MAX_LEVEL + 1] { }; - u32b oflags4[PY_MAX_LEVEL + 1] { }; - u32b oflags5[PY_MAX_LEVEL + 1] { }; - u32b oesp[PY_MAX_LEVEL + 1] { }; + std::array<object_flag_set, PY_MAX_LEVEL + 1> oflags; s16b opval[PY_MAX_LEVEL + 1] { }; char skill_basem[MAX_SKILLS] { }; |