CSemiDefHandler.h 662 B

1234567891011121314151617181920212223242526272829
  1. #ifndef SEMIDEF_H
  2. #define SEMIDEF_H
  3. #include "global.h"
  4. #include <string>
  5. #include "SDL.h"
  6. #include "SDL_image.h"
  7. #include <vector>
  8. struct Cimage
  9. {
  10. std::string imName; //name without extension
  11. SDL_Surface * bitmap;
  12. };
  13. class CSemiDefHandler
  14. {
  15. public:
  16. int howManyImgs;
  17. std::string defName;
  18. std::vector<Cimage> ourImages;
  19. std::vector<std::string> namesOfImgs;
  20. unsigned char * buforD;
  21. static std::string nameFromType(EterrainType typ);
  22. void openImg(const char *name);
  23. void openDef(std::string name, std::string lodName, int dist=1);
  24. void readFileList(int dist = 1);
  25. void loadImages(std::string path);
  26. };
  27. #endif // SEMIDEF_H