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