PokeMe64/include/animations/AnimationManager.h
Philippe Symons e51726eef9 Initial import of the first (extremely early) functional version.
It doesn't look like much, but it's functional ;-)

It can inject distribution pokémon into gen 1 and gen 2 original
cartridges and inject the GS ball in Pokémon Crystal.

That's it. But that was the minimal feature set I had in mind for the
project. In the Readme.md you can find the ideas I have for expanding
the project.

But the first priority is the UI, because it really looks bad right now.
(as I was mostly focused on building blocks and transfer pak
functionality. Not on making it looks good)
2024-07-19 21:46:11 +02:00

26 lines
540 B
C++
Executable File

#ifndef _ANIMATIONMANAGER_H
#define _ANIMATIONMANAGER_H
#include <vector>
#include <cstdint>
class IAnimation;
typedef std::vector<IAnimation*> IAnimationList;
/**
* @brief This class keeps track of animations and is used to apply an animation step on all pending animations
* on every frame
*/
class AnimationManager
{
public:
void add(IAnimation* animation);
void remove(IAnimation* animation);
void step(uint32_t elapsedTimeInMs);
protected:
private:
IAnimationList animations_;
};
#endif