dungeon_crawler

annotate 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
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@11 7 #include "texman.h"
nuclear@5 8
nuclear@5 9 class TileSet {
nuclear@5 10 private:
nuclear@5 11 std::map<std::string, Tile*> tiles;
nuclear@5 12
nuclear@11 13 TextureSet texset;
nuclear@11 14
nuclear@5 15 public:
nuclear@5 16 ~TileSet();
nuclear@5 17
nuclear@5 18 bool load(const char *fname);
nuclear@5 19
nuclear@11 20 TextureSet *get_textures();
nuclear@11 21 const TextureSet *get_textures() const;
nuclear@11 22
nuclear@5 23 Tile *get_tile(const char *name) const;
nuclear@46 24
nuclear@46 25 void update_tiles(unsigned long msec);
nuclear@5 26 };
nuclear@5 27
nuclear@5 28 void set_active_tileset(TileSet *set);
nuclear@5 29 TileSet *get_active_tileset();
nuclear@5 30
nuclear@5 31 #endif // TILESET_H_