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

* hero is displayed in battle window

* battle console buttons added
* blit8bppAlphaTo24bpp bad working fixed (to be optimized)
* maybe something else
This commit is contained in:
mateuszb
2008-03-03 19:41:10 +00:00
parent ab3d7fccb5
commit 9b9a9b455f
8 changed files with 160 additions and 30 deletions

View File

@@ -4,18 +4,33 @@
class CCreatureSet;
class CGHeroInstance;
class CDefHandler;
template <typename T> class AdventureMapButton;
class CBattleHero : public IShowable, public CIntObject
{
public:
CDefHandler * dh;
int phase;
int image;
void show(SDL_Surface * to);
~CBattleHero(); //d-tor
};
class CBattleInterface : public IActivable, public IShowable
{
private:
SDL_Surface * background, * menu;
AdventureMapButton<CBattleInterface> * bOptions, * bSurrender, * bFlee, * bAutofight, * bSpell,
* bWait, * bDefence, * bConsoleUp, * bConsoleDown;
CBattleHero * attackingHero, * defendingHero;
public:
CBattleInterface(CCreatureSet * army1, CCreatureSet * army2, int3 tile, CGHeroInstance *hero1, CGHeroInstance *hero2);
~CBattleInterface();
//std::vector<TimeInterested*> timeinterested; //animation handling
//button handle funcs:
void bOptionsf();
void bSurrenderf();