]> git.localhorst.tv Git - orbi.git/blob - src/world/Tileset.h
initial collision tests
[orbi.git] / src / world / Tileset.h
1 #ifndef ORBI_TILESET_H_
2 #define ORBI_TILESET_H_
3
4 #include "../graphics/Sprite.h"
5 #include "../graphics/Vector.h"
6
7
8 namespace orbi {
9
10 class Canvas;
11 class Texture;
12 class Tile;
13 class World;
14
15 class Tileset {
16
17 public:
18         Tileset(Texture &&, Vector<int> size);
19
20         Vector<int> TileSize() const { return tileSize; }
21
22         void DrawFG(Canvas &, Vector<int> to, const World &, Vector<int> at);
23
24 private:
25         Sprite sprite;
26         Vector<int> tileSize;
27         Vector<int> subSize;
28         Vector<int> subCount;
29
30 };
31
32 }
33
34 #endif