1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

* some functions have been written

* added CConsoleHandler to interact with user (it should be testing - only, the real console should be as in h3)

pathfinder MAY work now, but it isn't tested
This commit is contained in:
mateuszb
2007-08-15 15:13:11 +00:00
parent 8cc7e103bd
commit d708669a75
8 changed files with 189 additions and 39 deletions

View File

@ -37,6 +37,7 @@
#include "global.h"
#include "CPreGame.h"
#include "CGeneralTextHandler.h"
#include "CConsoleHandler.h"
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
# include <fcntl.h>
@ -110,6 +111,8 @@ int _tmain(int argc, _TCHAR* argv[])
SDL_WM_SetCaption(NAME,""); //set window title
CGameInfo * cgi = new CGameInfo; //contains all global informations about game (texts, lodHandlers, map handler itp.)
CGameInfo::mainObj = cgi;
cgi->consoleh = new CConsoleHandler;
cgi->consoleh->runConsole();
cgi->mush = mush;
THC std::cout<<"Initializing screen, fonts and sound handling: "<<tmh.getDif()<<std::endl;