dungeon_crawler

view prototype/src/tileset.h @ 11:e5567ddbf2ef

- Texture set (texture manager) - materials
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Aug 2012 03:11:36 +0300
parents 252a00508411
children f3030df27110
line source
1 #ifndef TILESET_H_
2 #define TILESET_H_
4 #include <string>
5 #include <map>
6 #include "tile.h"
7 #include "texman.h"
9 class TileSet {
10 private:
11 std::map<std::string, Tile*> tiles;
13 TextureSet texset;
15 public:
16 ~TileSet();
18 bool load(const char *fname);
20 TextureSet *get_textures();
21 const TextureSet *get_textures() const;
23 Tile *get_tile(const char *name) const;
24 };
26 void set_active_tileset(TileSet *set);
27 TileSet *get_active_tileset();
29 #endif // TILESET_H_