CGameInfo.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef CGAMEINFO_H
  2. #define CGAMEINFO_H
  3. #include "StartInfo.h"
  4. #include "SDL.h"
  5. #include <vector>
  6. class CMapHandler;
  7. class CArtHandler;
  8. class CHeroHandler;
  9. class CCreatureHandler;
  10. class CAbilityHandler;
  11. class CSpellHandler;
  12. class CAmbarCendamo;
  13. class CPreGameTextHandler;
  14. class CBuildingHandler;
  15. class CObjectHandler;
  16. class CMusicHandler;
  17. class CSemiLodHandler;
  18. class CDefObjInfoHandler;
  19. class CTownHandler;
  20. class CLodHandler;
  21. class CGeneralTextHandler;
  22. class CConsoleHandler;
  23. class CPathfinder;
  24. class CCursorHandler;
  25. class CScreenHandler;
  26. class CGameState;
  27. class CMapHandler;
  28. class CGameInterface;
  29. class CPreGame;
  30. class CDefHandler;
  31. /*
  32. CGameInfo class
  33. for allowing different functions for modifying game informations
  34. */
  35. class CGameInfo
  36. {
  37. public:
  38. static CGameInfo * mainObj; //pointer to main CGameInfo object
  39. CGameState * state;
  40. CArtHandler * arth;
  41. CHeroHandler * heroh;
  42. CCreatureHandler * creh;
  43. CAbilityHandler * abilh;
  44. CSpellHandler * spellh;
  45. CMapHandler * mh;
  46. CAmbarCendamo * ac;
  47. CPreGameTextHandler * preth;
  48. CBuildingHandler * buildh;
  49. CObjectHandler * objh;
  50. CMusicHandler * mush;
  51. CSemiLodHandler * sspriteh;
  52. CDefObjInfoHandler * dobjinfo;
  53. CTownHandler * townh;
  54. CLodHandler * spriteh;
  55. CLodHandler * bitmaph;
  56. CGeneralTextHandler * generaltexth;
  57. CConsoleHandler * consoleh;
  58. CPathfinder * pathf;
  59. CCursorHandler * curh;
  60. CScreenHandler * screenh;
  61. int localPlayer;
  62. std::vector<CGameInterface *> playerint;
  63. std::vector<SDL_Color> playerColors;
  64. std::vector<CDefHandler *> playerColorInfo; //gems from adventure map interface
  65. SDL_Color neutralColor;
  66. StartInfo scenarioOps;
  67. };
  68. #endif //CGAMEINFO_H