diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-01 01:08:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-01 01:08:30 +0300 |
commit | 16f6f636aee6acaf52439643502f5ff9cb4ccffc (patch) | |
tree | 9f291e5257e20b0090405d4594553f38a69767ce /src/being/being.h | |
parent | 3fc7fd8473e545265c705504ee0d5f2a70268282 (diff) | |
download | manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.gz manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.bz2 manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.xz manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.zip |
Convert UserColorId enum into strong typed enum.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/being/being.h b/src/being/being.h index 6e8588213..ebce57c41 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -25,6 +25,8 @@ #include "enums/being/reachable.h" +#include "enums/gui/usercolorid.h" + #include "enums/simpletypes/move.h" #include "resources/beinginfo.h" @@ -533,9 +535,15 @@ class Being notfinal : public ActorSprite, virtual void drawSpritesSDL(Graphics *const graphics, int posX, int posY) const override final; - void drawHpBar(Graphics *const graphics, const int x, const int y, - const int maxHP, const int hp, const int damage, - const int color1, const int color2, const int width, + void drawHpBar(Graphics *const graphics, + const int maxHP, + const int hp, + const int damage, + const UserColorIdT color1, + const UserColorIdT color2, + const int x, + const int y, + const int width, const int height) const; static void load(); |