CGameInfo.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * CGameInfo.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../lib/ConstTransitivePtr.h"
  12. class CModHandler;
  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 CObjectClassesHandler;
  23. class CTownHandler;
  24. class CGeneralTextHandler;
  25. class CConsoleHandler;
  26. class CCursorHandler;
  27. class CGameState;
  28. class IMainVideoPlayer;
  29. class CMap;
  30. //a class for non-mechanical client GUI classes
  31. class CClientState
  32. {
  33. public:
  34. CSoundHandler * soundh;
  35. CMusicHandler * musich;
  36. CConsoleHandler * consoleh;
  37. CCursorHandler * curh;
  38. IMainVideoPlayer * videoh;
  39. };
  40. extern CClientState * CCS;
  41. /// CGameInfo class
  42. /// for allowing different functions for accessing game informations
  43. class CGameInfo
  44. {
  45. public:
  46. ConstTransitivePtr<CModHandler> modh; //public?
  47. ConstTransitivePtr<CArtHandler> arth;
  48. ConstTransitivePtr<CHeroHandler> heroh;
  49. ConstTransitivePtr<CCreatureHandler> creh;
  50. ConstTransitivePtr<CSpellHandler> spellh;
  51. ConstTransitivePtr<CObjectHandler> objh;
  52. ConstTransitivePtr<CObjectClassesHandler> objtypeh;
  53. CGeneralTextHandler * generaltexth;
  54. CMapHandler * mh;
  55. CTownHandler * townh;
  56. void setFromLib();
  57. friend class CClient;
  58. CGameInfo();
  59. };
  60. extern const CGameInfo * CGI;