mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
27 lines
469 B
C++
27 lines
469 B
C++
#include "StdInc.h"
|
|
#include "CDummyAnimation.h"
|
|
|
|
#include "CBattleInterface.h"
|
|
|
|
bool CDummyAnimation::init()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void CDummyAnimation::nextFrame()
|
|
{
|
|
counter++;
|
|
if(counter > howMany)
|
|
endAnim();
|
|
}
|
|
|
|
void CDummyAnimation::endAnim()
|
|
{
|
|
CBattleAnimation::endAnim();
|
|
|
|
delete this;
|
|
}
|
|
|
|
CDummyAnimation::CDummyAnimation(CBattleInterface * _owner, int howManyFrames) : CBattleAnimation(_owner), counter(0), howMany(howManyFrames)
|
|
{
|
|
} |