dungeon_crawler

view prototype/src/tileset.h @ 75:b05ab29cd17d

color grading done
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Oct 2012 03:55:00 +0300
parents f3030df27110
children
line source
1 #ifndef TILESET_H_
2 #define TILESET_H_
4 #include <string>
5 #include <map>
6 #include "tile.h"
7 #include "texture.h"
8 #include "audio/sample.h"
10 class TileSet {
11 private:
12 std::map<std::string, Tile*> tiles;
14 TextureSet texset;
15 SampleSet sampleset;
17 public:
18 TileSet();
19 ~TileSet();
21 bool load(const char *fname);
23 TextureSet *get_textures();
24 const TextureSet *get_textures() const;
26 SampleSet *get_samples();
27 const SampleSet *get_samples() const;
29 Tile *get_tile(const char *name) const;
31 void update_tiles(unsigned long msec);
32 };
34 void set_active_tileset(TileSet *set);
35 TileSet *get_active_tileset();
37 #endif // TILESET_H_