diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
commit | 45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch) | |
tree | 698fe787014ca277f5b23144136d4e5417c6b444 /src/resources | |
parent | 273b79cf4f52c846508f3493727e34b1811ecfd5 (diff) | |
download | plus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz plus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2 plus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz plus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip |
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/iteminfo.cpp | 4 | ||||
-rw-r--r-- | src/resources/iteminfo.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 0cdbed04d..768825f44 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -86,7 +86,7 @@ ItemInfo::~ItemInfo() mSpriteToItemReplaceMap[f] = nullptr; } -const std::string &ItemInfo::getSprite(const Gender::Type gender, +const std::string &ItemInfo::getSprite(const GenderT gender, const BeingTypeId race) const { if (mView) @@ -363,7 +363,7 @@ int ItemInfo::getDrawPriority(const int direction) const } void ItemInfo::setSprite(const std::string &animationFile, - const Gender::Type gender, + const GenderT gender, const int race) { mAnimationFiles[static_cast<int>(gender) + race * 4] = animationFile; diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 3331d7882..4c8d90f8c 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -124,9 +124,9 @@ class ItemInfo final { mView = view; } void setSprite(const std::string &animationFile, - const Gender::Type gender, const int race); + const GenderT gender, const int race); - const std::string &getSprite(const Gender::Type gender, + const std::string &getSprite(const GenderT gender, const BeingTypeId race) const A_WARN_UNUSED; |