dungeon_crawler
annotate prototype/src/tileset.h @ 53:1ea56011c1ff
stuff + streaming start
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 19 Sep 2012 01:08:41 +0300 |
parents | f3030df27110 |
children |
rev | line source |
---|---|
nuclear@5 | 1 #ifndef TILESET_H_ |
nuclear@5 | 2 #define TILESET_H_ |
nuclear@5 | 3 |
nuclear@5 | 4 #include <string> |
nuclear@5 | 5 #include <map> |
nuclear@5 | 6 #include "tile.h" |
nuclear@48 | 7 #include "texture.h" |
nuclear@48 | 8 #include "audio/sample.h" |
nuclear@5 | 9 |
nuclear@5 | 10 class TileSet { |
nuclear@5 | 11 private: |
nuclear@5 | 12 std::map<std::string, Tile*> tiles; |
nuclear@5 | 13 |
nuclear@11 | 14 TextureSet texset; |
nuclear@48 | 15 SampleSet sampleset; |
nuclear@11 | 16 |
nuclear@5 | 17 public: |
nuclear@48 | 18 TileSet(); |
nuclear@5 | 19 ~TileSet(); |
nuclear@5 | 20 |
nuclear@5 | 21 bool load(const char *fname); |
nuclear@5 | 22 |
nuclear@11 | 23 TextureSet *get_textures(); |
nuclear@11 | 24 const TextureSet *get_textures() const; |
nuclear@11 | 25 |
nuclear@48 | 26 SampleSet *get_samples(); |
nuclear@48 | 27 const SampleSet *get_samples() const; |
nuclear@48 | 28 |
nuclear@5 | 29 Tile *get_tile(const char *name) const; |
nuclear@46 | 30 |
nuclear@46 | 31 void update_tiles(unsigned long msec); |
nuclear@5 | 32 }; |
nuclear@5 | 33 |
nuclear@5 | 34 void set_active_tileset(TileSet *set); |
nuclear@5 | 35 TileSet *get_active_tileset(); |
nuclear@5 | 36 |
nuclear@5 | 37 #endif // TILESET_H_ |