2021-10-04 16:20:24 +02:00
|
|
|
#pragma once
|
2021-06-24 00:43:13 +02:00
|
|
|
|
|
|
|
#include "classicanimationscenario.h"
|
|
|
|
|
|
|
|
class ClassicFlyingAnimationScenario : public ClassicAnimationScenario
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void launch(const std::shared_ptr<ClassicSprite> sprite, const microsec& time_begin, const microsec& time_end) override;
|
|
|
|
virtual void update(const microsec& music_offset) override;
|
|
|
|
virtual bool isDone() const override;
|
|
|
|
|
|
|
|
private:
|
2021-10-04 16:20:24 +02:00
|
|
|
float getPoint(float n1, float n2, float perc) const;
|
|
|
|
void fadeTrailSprite() const;
|
2021-06-24 00:43:13 +02:00
|
|
|
|
|
|
|
float _percentage;
|
|
|
|
};
|