1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

Support for Tree of knowledge and minor changes.

This commit is contained in:
Michał W. Urbańczyk
2008-08-22 12:21:09 +00:00
parent 1c7e3718a7
commit 0607ec70cf
16 changed files with 256 additions and 81 deletions

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "CConsoleHandler.h"
#include "CAdvmapInterface.h"
#include "CCastleInterface.h"
#include "CPlayerInterface.h"
#include "SDL.h"
#include "SDL_thread.h"
@ -48,6 +49,23 @@ int internalFunc(void * callback)
if(pom==std::string("die, fool"))
exit(0);
if(cn==std::string("activate"))
{
int what;
readed >> what;
switch (what)
{
case 0:
LOCPLINT->curint->activate();
break;
case 1:
LOCPLINT->adventureInt->activate();
break;
case 2:
LOCPLINT->castleInt->activate();
break;
}
}
else if(pom==std::string("get txt"))
{
boost::filesystem::create_directory("Extracted_txts");