1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* battle settings will be remembered between battles

* call-ins for serializing client and playerinterfaces (not used really yet)
This commit is contained in:
Michał W. Urbańczyk
2009-03-28 18:46:20 +00:00
parent 42773e67f2
commit fca28fab10
12 changed files with 166 additions and 47 deletions

View File

@@ -3,6 +3,7 @@
#include "../client/Client.h"
#include "../CPlayerInterface.h"
#include "../CGameInfo.h"
#include "../lib/Connection.h"
#include "../hch/CGeneralTextHandler.h"
#include "../hch/CDefObjInfoHandler.h"
#include "../hch/CHeroHandler.h"
@@ -411,6 +412,11 @@ void YourTurn::applyCl( CClient *cl )
boost::thread(boost::bind(&CGameInterface::yourTurn,cl->playerint[player]));
}
void SaveGame::applyCl(CClient *cl)
{
CSaveFile save("Games" PATHSEPARATOR + fname + ".vcgm1");
save << *cl;
}
void PlayerMessage::applyCl(CClient *cl)
{