1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-07 23:33:15 +02:00

Na początek.

This commit is contained in:
Michał W. Urbańczyk
2007-06-06 16:12:12 +00:00
parent ac4ce5af49
commit 01e84b9e40
13 changed files with 2187 additions and 0 deletions

28
CSemiDefHandler.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef SEMIDEF_H
#define SEMIDEF_H
#include "global.h"
#include <string>
#include "SDL.h"
#include "SDL_image.h"
#include <vector>
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(const char *name);
void readFileList();
void loadImages();
};
#endif // SEMIDEF_H