forked from NaiJi/project-kyoku
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
549 B
C
19 lines
549 B
C
3 years ago
|
#pragma once
|
||
3 years ago
|
|
||
|
#include "classicanimationscenario.h"
|
||
2 years ago
|
#include "core/point.h"
|
||
3 years ago
|
|
||
|
class ClassicFlyingAnimationScenario : public ClassicAnimationScenario
|
||
|
{
|
||
|
public:
|
||
2 years ago
|
virtual void launch(const std::shared_ptr<ClassicSprite> sprite, const kku::microsec& time_begin, const kku::microsec& time_end) override;
|
||
|
virtual void update(const kku::microsec& music_offset) override;
|
||
3 years ago
|
virtual bool isDone() const override;
|
||
|
|
||
|
private:
|
||
2 years ago
|
float getPoint(const kku::Point& position, float perc) const;
|
||
3 years ago
|
void fadeTrailSprite() const;
|
||
3 years ago
|
|
||
|
float _percentage;
|
||
|
};
|