2009-04-15 14:03:31 +00:00
|
|
|
/*
|
|
|
|
* CGameInfo.h, 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
|
|
|
|
*
|
2009-04-16 11:14:13 +00:00
|
|
|
*/
|
2017-07-13 11:26:03 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "../lib/ConstTransitivePtr.h"
|
2009-04-16 11:14:13 +00:00
|
|
|
|
2012-08-10 13:07:53 +00:00
|
|
|
class CModHandler;
|
2009-04-16 11:14:13 +00:00
|
|
|
class CMapHandler;
|
|
|
|
class CArtHandler;
|
|
|
|
class CHeroHandler;
|
|
|
|
class CCreatureHandler;
|
|
|
|
class CSpellHandler;
|
2017-08-25 13:35:02 +12:00
|
|
|
class CSkillHandler;
|
2009-04-16 11:14:13 +00:00
|
|
|
class CBuildingHandler;
|
|
|
|
class CObjectHandler;
|
2009-05-22 04:14:59 +00:00
|
|
|
class CSoundHandler;
|
|
|
|
class CMusicHandler;
|
2014-05-24 01:56:51 +03:00
|
|
|
class CObjectClassesHandler;
|
2009-04-16 11:14:13 +00:00
|
|
|
class CTownHandler;
|
|
|
|
class CGeneralTextHandler;
|
|
|
|
class CConsoleHandler;
|
|
|
|
class CCursorHandler;
|
|
|
|
class CGameState;
|
2011-08-08 07:12:18 +00:00
|
|
|
class IMainVideoPlayer;
|
2009-06-20 01:40:52 +00:00
|
|
|
|
2012-11-03 19:31:16 +00:00
|
|
|
class CMap;
|
|
|
|
|
2010-12-19 14:39:56 +00:00
|
|
|
|
|
|
|
//a class for non-mechanical client GUI classes
|
|
|
|
class CClientState
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CSoundHandler * soundh;
|
|
|
|
CMusicHandler * musich;
|
|
|
|
CConsoleHandler * consoleh;
|
|
|
|
CCursorHandler * curh;
|
2011-08-08 07:12:18 +00:00
|
|
|
IMainVideoPlayer * videoh;
|
2010-12-19 14:39:56 +00:00
|
|
|
};
|
2011-12-13 21:23:17 +00:00
|
|
|
extern CClientState * CCS;
|
2010-12-19 14:39:56 +00:00
|
|
|
|
2011-02-22 11:52:36 +00:00
|
|
|
/// CGameInfo class
|
|
|
|
/// for allowing different functions for accessing game informations
|
2009-04-16 11:14:13 +00:00
|
|
|
class CGameInfo
|
|
|
|
{
|
|
|
|
public:
|
2012-08-10 13:07:53 +00:00
|
|
|
ConstTransitivePtr<CModHandler> modh; //public?
|
2010-12-18 22:11:28 +00:00
|
|
|
ConstTransitivePtr<CArtHandler> arth;
|
2010-12-19 14:39:56 +00:00
|
|
|
ConstTransitivePtr<CHeroHandler> heroh;
|
|
|
|
ConstTransitivePtr<CCreatureHandler> creh;
|
|
|
|
ConstTransitivePtr<CSpellHandler> spellh;
|
2017-08-25 13:35:02 +12:00
|
|
|
ConstTransitivePtr<CSkillHandler> skillh;
|
2010-12-19 14:39:56 +00:00
|
|
|
ConstTransitivePtr<CObjectHandler> objh;
|
2014-05-24 01:56:51 +03:00
|
|
|
ConstTransitivePtr<CObjectClassesHandler> objtypeh;
|
2010-12-17 18:47:07 +00:00
|
|
|
CGeneralTextHandler * generaltexth;
|
|
|
|
CMapHandler * mh;
|
|
|
|
CTownHandler * townh;
|
2009-04-16 11:14:13 +00:00
|
|
|
|
|
|
|
void setFromLib();
|
2010-08-16 09:54:09 +00:00
|
|
|
|
|
|
|
friend class CClient;
|
|
|
|
|
|
|
|
CGameInfo();
|
2009-04-16 11:14:13 +00:00
|
|
|
};
|
2011-12-13 21:23:17 +00:00
|
|
|
extern const CGameInfo* CGI;
|