stratgame
annotate level/src/level.h @ 5:2e38715de41b
terrain
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 27 May 2012 07:00:48 +0300 |
parents | 8d95187cb3ee |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef LEVEL_H_ |
nuclear@0 | 2 #define LEVEL_H_ |
nuclear@0 | 3 |
nuclear@2 | 4 #include <string> |
nuclear@2 | 5 #include <map> |
nuclear@2 | 6 #include <imago2.h> |
nuclear@0 | 7 #include "tinyxml2.h" |
nuclear@0 | 8 |
nuclear@5 | 9 class Terrain; |
nuclear@2 | 10 |
nuclear@0 | 11 class Level { |
nuclear@0 | 12 private: |
nuclear@0 | 13 tinyxml2::XMLDocument xml; |
nuclear@5 | 14 Terrain *terrain; |
nuclear@0 | 15 |
nuclear@0 | 16 public: |
nuclear@0 | 17 Level(); |
nuclear@0 | 18 ~Level(); |
nuclear@0 | 19 |
nuclear@0 | 20 bool load(const char *fname); |
nuclear@3 | 21 |
nuclear@3 | 22 void draw() const; |
nuclear@0 | 23 }; |
nuclear@0 | 24 |
nuclear@0 | 25 #endif // LEVEL_H_ |