GameKit  0.0.1a
C++ gamedev tools
TilemapAnimator.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: TilemapAnimator.hpp
5  *
6  * Description:
7  *
8  * Created: 15/02/2019 19:20:31
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
14 #ifndef GK_TILEMAPANIMATOR_HPP_
15 #define GK_TILEMAPANIMATOR_HPP_
16 
17 #include "gk/core/Timer.hpp"
18 #include "gk/graphics/Tileset.hpp"
19 
20 namespace gk {
21 
22 class Tilemap;
23 
25  public:
26  void init(Tilemap &map);
27 
28  void animateTiles(Tilemap &map);
29 
30  private:
31  struct TileAnimation {
34  };
35 
36  std::vector<TileAnimation> m_tileAnimations;
37 };
38 
39 } // namespace gk
40 
41 #endif // GK_TILEMAPANIMATOR_HPP_
std::vector< TileAnimation > m_tileAnimations
unsigned short u16
Definition: IntTypes.hpp:22
void init(Tilemap &map)
Very basic timer.
Definition: Timer.hpp:25
void animateTiles(Tilemap &map)