#ifndef SEMIDEF_H #define SEMIDEF_H #include "global.h" #include #include "SDL.h" #include "SDL_image.h" #include struct Cimage { std::string imName; //name without extension SDL_Surface * bitmap; }; class CSemiDefHandler { public: int howManyImgs; std::string defName; std::vector ourImages; std::vector namesOfImgs; unsigned char * buforD; static std::string nameFromType(EterrainType typ); void openImg(const char *name); void openDef(const char *name); void readFileList(); void loadImages(); }; #endif // SEMIDEF_H