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:
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user