CGameInfo.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 CAbilityHandler;
  18. class CSpellHandler;
  19. class CAmbarCendamo;
  20. class CPreGameTextHandler;
  21. class CBuildingHandler;
  22. class CObjectHandler;
  23. class CSoundHandler;
  24. class CMusicHandler;
  25. class CDefObjInfoHandler;
  26. class CTownHandler;
  27. class CLodHandler;
  28. class CGeneralTextHandler;
  29. class CConsoleHandler;
  30. class CPathfinder;
  31. class CCursorHandler;
  32. class CScreenHandler;
  33. class CGameState;
  34. class CMapHandler;
  35. class CGameInterface;
  36. class CPreGame;
  37. class CDefHandler;
  38. class CVideoPlayer;
  39. /*
  40. CGameInfo class
  41. for allowing different functions for accessing game informations
  42. */
  43. class CGameInfo
  44. {
  45. /*const*/ CGameState * state; //don't touch it in client's code
  46. public:
  47. /*const*/ CArtHandler * arth;
  48. /*const*/ CHeroHandler * heroh;
  49. /*const*/ CCreatureHandler * creh;
  50. /*const*/ CSpellHandler * spellh;
  51. /*const*/ CMapHandler * mh;
  52. /*const*/ CBuildingHandler * buildh;
  53. /*const*/ CObjectHandler * objh;
  54. CSoundHandler * soundh;
  55. CMusicHandler * musich;
  56. /*const*/ CDefObjInfoHandler * dobjinfo;
  57. /*const*/ CTownHandler * townh;
  58. /*const*/ CGeneralTextHandler * generaltexth;
  59. CConsoleHandler * consoleh;
  60. CCursorHandler * curh;
  61. /*const*/ CScreenHandler * screenh;
  62. CVideoPlayer * videoh;
  63. void setFromLib();
  64. friend class CClient;
  65. friend class CMapHandler; //TODO: remove it
  66. CGameInfo();
  67. };
  68. #endif // __CGAMEINFO_H__