1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

showInfoDialog should be compatible with interfaces other than advmapint.

This commit is contained in:
Michał W. Urbańczyk
2008-01-20 12:34:39 +00:00
parent 34f791a0bf
commit d64dfa0a23
8 changed files with 41 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ public:
void show(SDL_Surface * to = NULL);
};
class CHeroWindow: public IShowable, public virtual CIntObject
class CHeroWindow: public IActivable, public IShowable, public virtual CIntObject
{
SDL_Surface * background, * curBack;
const CGHeroInstance * curHero;
@@ -56,6 +56,7 @@ public:
~CHeroWindow(); //d-tor
void setHero(const CGHeroInstance * hero); //sets main displayed hero
void activate(); //activates hero window;
void deactivate(); //activates hero window;
virtual void show(SDL_Surface * to = NULL); //shows hero window
void redrawCurBack(); //redraws curBAck from scratch
void quit(); //stops displaying hero window