dungeon_crawler
diff prototype/src/tileset.h @ 48:aa9e28670ae2
added sound playback, more to do
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 17 Sep 2012 08:40:59 +0300 |
parents | f3030df27110 |
children |
line diff
1.1 --- a/prototype/src/tileset.h Sun Sep 16 08:16:50 2012 +0300 1.2 +++ b/prototype/src/tileset.h Mon Sep 17 08:40:59 2012 +0300 1.3 @@ -4,15 +4,18 @@ 1.4 #include <string> 1.5 #include <map> 1.6 #include "tile.h" 1.7 -#include "texman.h" 1.8 +#include "texture.h" 1.9 +#include "audio/sample.h" 1.10 1.11 class TileSet { 1.12 private: 1.13 std::map<std::string, Tile*> tiles; 1.14 1.15 TextureSet texset; 1.16 + SampleSet sampleset; 1.17 1.18 public: 1.19 + TileSet(); 1.20 ~TileSet(); 1.21 1.22 bool load(const char *fname); 1.23 @@ -20,6 +23,9 @@ 1.24 TextureSet *get_textures(); 1.25 const TextureSet *get_textures() const; 1.26 1.27 + SampleSet *get_samples(); 1.28 + const SampleSet *get_samples() const; 1.29 + 1.30 Tile *get_tile(const char *name) const; 1.31 1.32 void update_tiles(unsigned long msec);