dungeon_crawler
view prototype/src/tileset.h @ 47:d52711f2b9a1
started writting audio code
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 16 Sep 2012 08:16:50 +0300 |
parents | e5567ddbf2ef |
children | aa9e28670ae2 |
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;
25 void update_tiles(unsigned long msec);
26 };
28 void set_active_tileset(TileSet *set);
29 TileSet *get_active_tileset();
31 #endif // TILESET_H_