CGameInfo.h 1.7 KB

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