Cześć.
Mam klasę
class monster :public sf::Sprite
{
int hp;
float speed;
bar hpBar;
public:
monster();
~monster();
};
i chcę, żeby przy rysowaniu obiektu monster rysował się też hpBar.
Wiem, że należy nadpisać funkcję void draw(sf::RenderTarget &target, sf::RenderStates states) const;
Ale nie wiem, jak zaimplementować ciało tej funkcji. Ktoś coś wie ?