R-Type
AnimationSystem.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-Type
4 ** File description:
5 ** AnimationSystem
6 */
7 
8 #ifndef ANIMATIONSYSTEM_HPP_
9 #define ANIMATIONSYSTEM_HPP_
10 #include "GameEngine.hpp"
11 #include "Registry.hpp"
12 
13 namespace GameEngine
14 {
17  {
18  public:
21  AnimationSystem(const float &deltaTime) : _deltaTime(deltaTime){};
23  ~AnimationSystem() = default;
27 
28  private:
29  const float &_deltaTime;
30  };
31 } // namespace GameEngine
32 
33 #endif /* !ANIMATIONSYSTEM_HPP_ */
Class representing the sprite sheet animation system.
Definition: AnimationSystem.hpp:17
~AnimationSystem()=default
destructor
void operator()(SparseArray< TextureComponent > &texture)
overload of () operator function that updates the texture to the next animation
Definition: AnimationSystem.cpp:14
AnimationSystem(const float &deltaTime)
constructor
Definition: AnimationSystem.hpp:21
Array which can have empty indexes.
Definition: SparseArray.hpp:19
Definition: AssetManager.hpp:15