2009-05-20 10:08:56 +00:00
|
|
|
#include "../stdafx.h"
|
2007-06-09 18:14:41 +00:00
|
|
|
#include "CGameInfo.h"
|
2009-05-20 10:08:56 +00:00
|
|
|
#include "../lib/VCMI_Lib.h"
|
2007-06-09 18:14:41 +00:00
|
|
|
|
2009-04-15 14:03:31 +00:00
|
|
|
/*
|
|
|
|
* CGameInfo.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-12-18 22:11:28 +00:00
|
|
|
const CGameInfo * CGI; //game info for general use
|
2010-12-19 14:39:56 +00:00
|
|
|
CClientState * CCS;
|
2009-01-10 22:08:18 +00:00
|
|
|
|
|
|
|
CGameInfo::CGameInfo()
|
|
|
|
{
|
|
|
|
mh = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameInfo::setFromLib()
|
|
|
|
{
|
|
|
|
generaltexth = VLC->generaltexth;
|
|
|
|
arth = VLC->arth;
|
|
|
|
creh = VLC->creh;
|
|
|
|
townh = VLC->townh;
|
|
|
|
heroh = VLC->heroh;
|
|
|
|
objh = VLC->objh;
|
|
|
|
spellh = VLC->spellh;
|
|
|
|
dobjinfo = VLC->dobjinfo;
|
|
|
|
buildh = VLC->buildh;
|
|
|
|
}
|