mirror of
https://github.com/DragonMinded/jubeatmenu.git
synced 2025-02-02 12:27:22 +01:00
23 lines
390 B
C++
23 lines
390 B
C++
#pragma once
|
|
|
|
class Animation
|
|
{
|
|
public:
|
|
Animation();
|
|
~Animation();
|
|
|
|
void Animate(int animationOffset, int animationDistance, double pixelsPerSecond);
|
|
bool IsAnimating();
|
|
void Tick();
|
|
int Position();
|
|
private:
|
|
LONG CurrentMilliseconds();
|
|
|
|
bool isAnimating;
|
|
int distance;
|
|
double location;
|
|
int offset;
|
|
double speed;
|
|
LONG lastMilliseconds;
|
|
};
|