2009-04-15 17:03:31 +03: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
|
|
|
|
*
|
|
|
|
*/
|
2017-07-13 10:26:03 +02:00
|
|
|
#include "StdInc.h"
|
|
|
|
#include "CGameInfo.h"
|
|
|
|
|
|
|
|
#include "../lib/VCMI_Lib.h"
|
2009-04-15 17:03:31 +03:00
|
|
|
|
2010-12-19 00:11:28 +02:00
|
|
|
const CGameInfo * CGI; //game info for general use
|
2014-03-08 19:05:23 +03:00
|
|
|
CClientState * CCS = nullptr;
|
2009-01-11 00:08:18 +02:00
|
|
|
|
|
|
|
CGameInfo::CGameInfo()
|
|
|
|
{
|
2016-11-27 16:48:18 +02:00
|
|
|
generaltexth = nullptr;
|
2013-06-26 14:18:27 +03:00
|
|
|
mh = nullptr;
|
2016-11-27 16:48:18 +02:00
|
|
|
townh = nullptr;
|
2009-01-11 00:08:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CGameInfo::setFromLib()
|
|
|
|
{
|
2012-08-10 16:07:53 +03:00
|
|
|
modh = VLC->modh;
|
2009-01-11 00:08:18 +02:00
|
|
|
generaltexth = VLC->generaltexth;
|
|
|
|
arth = VLC->arth;
|
|
|
|
creh = VLC->creh;
|
|
|
|
townh = VLC->townh;
|
|
|
|
heroh = VLC->heroh;
|
|
|
|
objh = VLC->objh;
|
|
|
|
spellh = VLC->spellh;
|
2014-05-16 23:50:02 +03:00
|
|
|
objtypeh = VLC->objtypeh;
|
2014-03-08 19:05:23 +03:00
|
|
|
}
|