CGameInfo.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 "SDL.h"
  23. #include <vector>
  24. /*
  25. CGameInfo class
  26. for allowing different functions for modifying game informations
  27. */
  28. class CMapHandler;
  29. class CGameInfo
  30. {
  31. public:
  32. static CGameInfo * mainObj; //pointer to main CGameInfo object
  33. CGameState * state;
  34. CArtHandler * arth;
  35. CHeroHandler * heroh;
  36. CCreatureHandler * creh;
  37. CAbilityHandler * abilh;
  38. CSpellHandler * spellh;
  39. CMapHandler * mh;
  40. CAmbarCendamo * ac;
  41. CPreGameTextHandler * preth ;
  42. CBuildingHandler * buildh;
  43. CObjectHandler * objh;
  44. CMusicHandler * mush;
  45. CSemiLodHandler * sspriteh;
  46. CDefObjInfoHandler * dobjinfo;
  47. CTownHandler * townh;
  48. CLodHandler * spriteh;
  49. CLodHandler * bitmaph;
  50. CGeneralTextHandler * generaltexth;
  51. int localPlayer;
  52. std::vector<CGameInterface *> playerint;
  53. std::vector<SDL_Color> playerColors;
  54. SDL_Color neutralColor;
  55. StartInfo scenarioOps;
  56. };
  57. #endif //CGAMEINFO_H