dungeon_crawler
annotate prototype/src/tileset.h @ 8:77c302306206
forgot to uncomment something
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 17 Aug 2012 14:30:25 +0300 |
parents | |
children | e5567ddbf2ef |
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@5 | 7 |
nuclear@5 | 8 class TileSet { |
nuclear@5 | 9 private: |
nuclear@5 | 10 std::map<std::string, Tile*> tiles; |
nuclear@5 | 11 |
nuclear@5 | 12 public: |
nuclear@5 | 13 ~TileSet(); |
nuclear@5 | 14 |
nuclear@5 | 15 bool load(const char *fname); |
nuclear@5 | 16 |
nuclear@5 | 17 Tile *get_tile(const char *name) const; |
nuclear@5 | 18 }; |
nuclear@5 | 19 |
nuclear@5 | 20 void set_active_tileset(TileSet *set); |
nuclear@5 | 21 TileSet *get_active_tileset(); |
nuclear@5 | 22 |
nuclear@5 | 23 #endif // TILESET_H_ |