2021-06-24 00:43:13 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-08-05 20:59:48 +02:00
|
|
|
#include "tools/mathutils.h"
|
2021-06-24 00:43:13 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class ClassicSprite;
|
|
|
|
|
|
|
|
class ClassicAnimationScenario
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~ClassicAnimationScenario() = default;
|
|
|
|
|
|
|
|
virtual void launch(const std::shared_ptr<ClassicSprite> sprite, const microsec& time_begin, const microsec &time_end) = 0;
|
|
|
|
virtual void update(const microsec& music_offset) = 0;
|
|
|
|
virtual bool isDone() const = 0;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::shared_ptr<ClassicSprite> _sprite;
|
|
|
|
microsec _time_begin;
|
|
|
|
microsec _time_end;
|
|
|
|
};
|