2009-04-16 11:14:13 +00:00
|
|
|
#ifndef __CGAMEINFO_H__
|
|
|
|
#define __CGAMEINFO_H__
|
2009-05-20 10:08:56 +00:00
|
|
|
#include "../global.h"
|
2010-12-17 18:47:07 +00:00
|
|
|
#include "../lib/ConstTransitivePtr.h"
|
2009-04-16 11:14:13 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
*/
|
|
|
|
|
|
|
|
class CMapHandler;
|
|
|
|
class CArtHandler;
|
|
|
|
class CHeroHandler;
|
|
|
|
class CCreatureHandler;
|
|
|
|
class CSpellHandler;
|
|
|
|
class CBuildingHandler;
|
|
|
|
class CObjectHandler;
|
2009-05-22 04:14:59 +00:00
|
|
|
class CSoundHandler;
|
|
|
|
class CMusicHandler;
|
2009-04-16 11:14:13 +00:00
|
|
|
class CDefObjInfoHandler;
|
|
|
|
class CTownHandler;
|
|
|
|
class CGeneralTextHandler;
|
|
|
|
class CConsoleHandler;
|
|
|
|
class CCursorHandler;
|
|
|
|
class CGameState;
|
2009-06-20 01:40:52 +00:00
|
|
|
class CVideoPlayer;
|
|
|
|
|
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;
|
|
|
|
CVideoPlayer * videoh;
|
|
|
|
};
|
|
|
|
|
2010-10-30 21:53:41 +00:00
|
|
|
struct Mapa;
|
2010-08-16 13:51:31 +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
|
|
|
|
{
|
2010-12-20 13:04:24 +00:00
|
|
|
ConstTransitivePtr<CGameState> state; //don't touch it in client's code
|
2009-04-16 11:14:13 +00:00
|
|
|
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;
|
|
|
|
ConstTransitivePtr<CObjectHandler> objh;
|
|
|
|
ConstTransitivePtr<CDefObjInfoHandler> dobjinfo;
|
2010-12-17 18:47:07 +00:00
|
|
|
CGeneralTextHandler * generaltexth;
|
|
|
|
CMapHandler * mh;
|
2010-12-20 21:22:53 +00:00
|
|
|
ConstTransitivePtr<CBuildingHandler> buildh;
|
2010-12-17 18:47:07 +00:00
|
|
|
CTownHandler * townh;
|
|
|
|
//CTownHandler * townh;
|
2009-04-16 11:14:13 +00:00
|
|
|
|
|
|
|
void setFromLib();
|
2010-08-16 09:54:09 +00:00
|
|
|
|
|
|
|
friend class CClient;
|
2010-08-16 13:51:31 +00:00
|
|
|
friend void initVillagesCapitols(Mapa * map);
|
2010-08-16 09:54:09 +00:00
|
|
|
|
|
|
|
CGameInfo();
|
2009-04-16 11:14:13 +00:00
|
|
|
};
|
|
|
|
|
2010-12-20 13:04:24 +00:00
|
|
|
//
|
2010-12-17 18:47:07 +00:00
|
|
|
// public:
|
2010-12-18 22:11:28 +00:00
|
|
|
//
|
2010-12-17 18:47:07 +00:00
|
|
|
// ConstTransitivePtr<CGeneralTextHandler> generaltexth;
|
2010-08-16 09:54:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-16 11:14:13 +00:00
|
|
|
#endif // __CGAMEINFO_H__
|