static void StartMightaDieAnimator( int x, int y ){ Sprite* newSprite = new Sprite(x, y, true, AnimationFilmHolder::GetFilm("MightaDie"), Terrain::GetActionLayer(),false); MovingPathAnimation* mpa = (MovingPathAnimation*)AnimationsParser::GetAnimation("MightaDie"); MightaDieAnimator *bda = new MightaDieAnimator(); newSprite->AddStartFallingListener(bda); START_ANIMATOR( bda, newSprite, mpa, GetGameTime() ); }
static void StartDieByFireAnimator(int x, int y, bool isBub){ Sprite* newSprite = new Sprite( x, y, true, AnimationFilmHolder::GetFilm("BubBurningDie"), Terrain::GetActionLayer(), false ); newSprite->SetIsBub(isBub); MovingPathAnimation* mpa=(MovingPathAnimation*)AnimationsParser::GetAnimation("BubDieByFire"); BubDieByFireAnimator *bda=new BubDieByFireAnimator(); newSprite->AddStartFallingListener(bda); START_ANIMATOR( bda, newSprite, mpa, GetGameTime() ); }