CGameInfo.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef __CGAMEINFO_H__
  2. #define __CGAMEINFO_H__
  3. #include "../global.h"
  4. /*
  5. * CGameInfo.h, part of VCMI engine
  6. *
  7. * Authors: listed in file AUTHORS in main folder
  8. *
  9. * License: GNU General Public License v2.0 or later
  10. * Full text of license available in license.txt file, in main folder
  11. *
  12. */
  13. class CMapHandler;
  14. class CArtHandler;
  15. class CHeroHandler;
  16. class CCreatureHandler;
  17. class CSpellHandler;
  18. class CBuildingHandler;
  19. class CObjectHandler;
  20. class CSoundHandler;
  21. class CMusicHandler;
  22. class CDefObjInfoHandler;
  23. class CTownHandler;
  24. class CGeneralTextHandler;
  25. class CConsoleHandler;
  26. class CCursorHandler;
  27. class CGameState;
  28. class CVideoPlayer;
  29. class Mapa;
  30. /*
  31. CGameInfo class
  32. for allowing different functions for accessing game informations
  33. */
  34. class CGameInfo
  35. {
  36. /*const*/ CGameState * state; //don't touch it in client's code
  37. public:
  38. /*const*/ CArtHandler * arth;
  39. /*const*/ CHeroHandler * heroh;
  40. /*const*/ CCreatureHandler * creh;
  41. /*const*/ CSpellHandler * spellh;
  42. /*const*/ CMapHandler * mh;
  43. /*const*/ CBuildingHandler * buildh;
  44. /*const*/ CObjectHandler * objh;
  45. CSoundHandler * soundh;
  46. CMusicHandler * musich;
  47. /*const*/ CDefObjInfoHandler * dobjinfo;
  48. /*const*/ CTownHandler * townh;
  49. /*const*/ CGeneralTextHandler * generaltexth;
  50. CConsoleHandler * consoleh;
  51. CCursorHandler * curh;
  52. CVideoPlayer * videoh;
  53. void setFromLib();
  54. friend class CClient;
  55. friend void initVillagesCapitols(Mapa * map);
  56. CGameInfo();
  57. };
  58. #endif // __CGAMEINFO_H__