dungeon_crawler

annotate prototype/src/tileset.h @ 15:3a3236a4833c

adding shaders and renderer abstraction
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Aug 2012 23:09:30 +0300
parents 252a00508411
children f3030df27110
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@5 24 };
nuclear@5 25
nuclear@5 26 void set_active_tileset(TileSet *set);
nuclear@5 27 TileSet *get_active_tileset();
nuclear@5 28
nuclear@5 29 #endif // TILESET_H_