From 16f6f636aee6acaf52439643502f5ff9cb4ccffc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jun 2015 01:08:30 +0300 Subject: Convert UserColorId enum into strong typed enum. --- src/being/being.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/being/being.h') 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(); -- cgit v1.2.3-60-g2f50