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

bugfix, a bit more of hero window

This commit is contained in:
mateuszb
2008-01-12 12:55:45 +00:00
parent b976857c6c
commit 7968aebe1a
3 changed files with 49 additions and 3 deletions

View File

@@ -4,14 +4,18 @@
template <typename T> class AdventureMapButton;
class SDL_Surface;
class CGHeroInstance;
class CDefHandler;
class CHeroWindow: public IShowable, public virtual CIntObject
{
SDL_Surface * background;
SDL_Surface * background, * curBack;
const CGHeroInstance * curHero;
//general graphics
CDefHandler * skillpics;
//buttons
AdventureMapButton<CHeroWindow> * quitButton;
AdventureMapButton<CHeroWindow> * quitButton, * dismissButton, * questlogButton;
public:
CHeroWindow(int playerColor); //c-tor
~CHeroWindow(); //d-tor
@@ -19,4 +23,6 @@ public:
void activate(); //activates hero window;
virtual void show(SDL_Surface * to = NULL); //shows hero window
void quit(); //stops displaying hero window
void dismissCurrent(); //dissmissed currently displayed hero (curHero) //TODO: make it working
void questlog(); //show quest log in
};