1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +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

@ -828,6 +828,16 @@ void CMapHandler::init()
bback>>battleBacks[i][f];
}
}
//initializing battle hero animation
std::ifstream bher("config/battleHeroes.txt");
int numberofh;
bher>>numberofh;
battleHeroes.resize(numberofh);
for(int i=0; i<numberofh; ++i) //9 - number of terrains battle can be fought on
{
bher>>battleHeroes[i];
}
}
SDL_Surface * CMapHandler::terrainRect(int x, int y, int dx, int dy, int level, unsigned char anim, PseudoV< PseudoV< PseudoV<unsigned char> > > & visibilityMap, bool otherHeroAnim, unsigned char heroAnim, SDL_Surface * extSurf, SDL_Rect * extRect)