1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/CSemiDefHandler.h

29 lines
638 B
C
Raw Normal View History

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