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.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "classicanimationscenario.h"
|
|
|
|
#include "core/point.h"
|
|
|
|
|
|
|
|
class ClassicFlyingAnimationScenario : public ClassicAnimationScenario
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void launch(const std::shared_ptr<ClassicNoteGraphics> sprite, const kku::microsec& time_begin, const kku::microsec& time_end) override;
|
|
|
|
virtual void update(const kku::microsec& music_offset) override;
|
|
|
|
virtual bool isDone() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
float getPoint(const kku::Point& position, float perc) const;
|
|
|
|
void refillColor() const;
|
|
|
|
|
|
|
|
float _percentage;
|
|
|
|
};
|