1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/CMessage.h
Michał W. Urbańczyk 1380a7fd34 * New files - CGameInterface.h and CGameInterface.cpp - add them to your project
* Fixed several memory leaks
* Added support for player colors in CMessage (still need some work)
* Moved declarations of CPreGame buttons to CPreGame.h
* started making player interface (new button classes etc)
2007-07-28 09:44:10 +00:00

27 lines
716 B
C++

#ifndef CMESSAGE_H
#define CMESSAGE_H
#include "SDL_TTF.h"
#include "CSemiDefHandler.h"
#include "CDefHandler.h"
#include "CGameInterface.h"
enum EWindowType {infoOnly, infoOK, yesOrNO};
class CPreGame;
class MapSel;
class CMessage
{
public:
static std::vector<std::string> * breakText(std::string text, int line=30, bool userBreak=true); //line - chars per line
CDefHandler * piecesOfBox;
SDL_Surface * background;
SDL_Surface * genMessage(std::string title, std::string text, EWindowType type=infoOnly,
std::vector<CDefHandler*> *addPics=NULL, void * cb=NULL);
SDL_Surface * drawBox1(int w, int h, int playerColor=1);
CMessage();
~CMessage();
};
//
#endif //CMESSAGE_H