1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

- Changed visibility of curInt member of BattleInterface from public to private and provided a getter method

This commit is contained in:
beegee1
2013-11-03 16:44:47 +00:00
parent 0e3eae3095
commit 94bee3fd1b
4 changed files with 19 additions and 13 deletions

View File

@ -1643,6 +1643,11 @@ int CBattleInterface::getAnimSpeed() const
return vstd::round(settings["battle"]["animationSpeed"].Float() * 100);
}
CPlayerInterface * CBattleInterface::getCurrentPlayerInterface() const
{
return curInt.get();
}
void CBattleInterface::setActiveStack(const CStack * stack)
{
if (activeStack) // update UI