2022-03-23 22:01:59 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../defines.hpp"
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
class CAnimationManager {
|
|
|
|
public:
|
|
|
|
|
|
|
|
void tick();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool deltaSmallToFlip(const Vector2D& a, const Vector2D& b);
|
2022-03-31 17:50:00 +02:00
|
|
|
bool deltaSmallToFlip(const CColor& a, const CColor& b);
|
2022-04-14 16:43:29 +02:00
|
|
|
bool deltaSmallToFlip(const float& a, const float& b);
|
2022-03-23 22:01:59 +01:00
|
|
|
bool deltazero(const Vector2D& a, const Vector2D& b);
|
2022-03-31 17:50:00 +02:00
|
|
|
bool deltazero(const CColor& a, const CColor& b);
|
2022-04-14 16:43:29 +02:00
|
|
|
bool deltazero(const float& a, const float& b);
|
2022-03-31 17:50:00 +02:00
|
|
|
double parabolic(const double, const double, const double);
|
|
|
|
CColor parabolic(const double, const CColor&, const CColor&);
|
2022-03-23 22:01:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inline std::unique_ptr<CAnimationManager> g_pAnimationManager;
|