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

* moving units and some minor improvements

This commit is contained in:
mateuszb
2008-03-29 10:59:18 +00:00
parent 137f62798b
commit fc4e0215fb
9 changed files with 143 additions and 78 deletions

View File

@@ -1889,19 +1889,20 @@ void CPlayerInterface::battleNewRound(int round) //called at the beggining of ea
{
}
void CPlayerInterface::actionStarted(Action action)//occurs BEFORE every action taken by any stack or by the hero
void CPlayerInterface::actionStarted(BattleAction action)//occurs BEFORE every action taken by any stack or by the hero
{
}
void CPlayerInterface::actionFinished(Action action)//occurs AFTER every action taken by any stack or by the hero
void CPlayerInterface::actionFinished(BattleAction action)//occurs AFTER every action taken by any stack or by the hero
{
dynamic_cast<CBattleInterface*>(curint)->curStackActed = true;
}
void CPlayerInterface::activeStack(int stackID) //called when it's turn of that stack
{
unsigned char showCount = 0;
dynamic_cast<CBattleInterface*>(curint)->stackActivated(stackID);
while(true)
while(!dynamic_cast<CBattleInterface*>(curint)->curStackActed) //while current unit can perform an action
{
++showCount;
SDL_Event sEvent;