dungeon_crawler
diff prototype/src/tileset.h @ 5:252a00508411
more stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 12 Aug 2012 07:07:57 +0300 |
parents | |
children | e5567ddbf2ef |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/prototype/src/tileset.h Sun Aug 12 07:07:57 2012 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +#ifndef TILESET_H_ 1.5 +#define TILESET_H_ 1.6 + 1.7 +#include <string> 1.8 +#include <map> 1.9 +#include "tile.h" 1.10 + 1.11 +class TileSet { 1.12 +private: 1.13 + std::map<std::string, Tile*> tiles; 1.14 + 1.15 +public: 1.16 + ~TileSet(); 1.17 + 1.18 + bool load(const char *fname); 1.19 + 1.20 + Tile *get_tile(const char *name) const; 1.21 +}; 1.22 + 1.23 +void set_active_tileset(TileSet *set); 1.24 +TileSet *get_active_tileset(); 1.25 + 1.26 +#endif // TILESET_H_