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