dungeon_crawler

view prototype/src/tileset.h @ 46:f3030df27110

debugging the particles
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 13 Sep 2012 06:33:51 +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_