CGameInfo.h 1.7 KB

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