1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

another piece of battles (with code reorganization)

This commit is contained in:
mateuszb
2008-03-14 18:24:37 +00:00
parent eed2a2b54c
commit 7b88f4a70b
8 changed files with 55 additions and 19 deletions

View File

@ -1850,10 +1850,10 @@ void CPlayerInterface::garrisonChanged(const CGObjectInstance * obj)
}
}
void CPlayerInterface::battleStart(CCreatureSet * army1, CCreatureSet * army2, int3 tile, CGHeroInstance *hero1, CGHeroInstance *hero2, tribool side, std::vector< CStack* > & stacks) //called by engine when battle starts; side=0 - left, side=1 - right
void CPlayerInterface::battleStart(CCreatureSet * army1, CCreatureSet * army2, int3 tile, CGHeroInstance *hero1, CGHeroInstance *hero2, tribool side) //called by engine when battle starts; side=0 - left, side=1 - right
{
curint->deactivate();
curint = new CBattleInterface(army1,army2,cb,hero1,hero2,stacks);
curint = new CBattleInterface(army1,army2,hero1,hero2);
curint->activate();
LOCPLINT->objsToBlit.push_back(dynamic_cast<IShowable*>(curint));
}