mapHandler.h 901 B

123456789101112131415161718192021222324252627
  1. #ifndef MAPHANDLER_H
  2. #define MAPHANDLER_H
  3. #include "CAmbarCendamo.h"
  4. #include "CSemiDefHandler.h"
  5. #include "CGameInfo.h"
  6. class CMapHandler
  7. {
  8. public:
  9. CAmbarCendamo * reader;
  10. SDL_Surface *** terrainBitmap;
  11. SDL_Surface *** undTerrainBitmap; // used only if there is underground level
  12. SDL_Surface * terrainRect(int x, int y, int dx, int dy, int level=0);
  13. SDL_Surface * terrBitmap(int x, int y);
  14. SDL_Surface * undTerrBitmap(int x, int y);
  15. CSemiDefHandler * fullHide;
  16. CSemiDefHandler * partialHide;
  17. std::vector< std::vector<bool> > visibility; //true means that pointed place is visible
  18. std::vector< std::vector<bool> > undVisibility; //true means that pointed place is visible
  19. SDL_Surface mirrorImage(SDL_Surface *src); //what is this??
  20. SDL_Surface * getVisBitmap(int x, int y, std::vector< std::vector<bool> > & visibility);
  21. void init();
  22. };
  23. #endif //MAPHANDLER_H