CAmbarCendamo.h 885 B

1234567891011121314151617181920212223242526272829
  1. #ifndef AMBARCENDD
  2. #define AMBARCENDD
  3. #include <iostream>
  4. #include <fstream>
  5. #include <string>
  6. #include <vector>
  7. #include "global.h"
  8. #include "SDL.h"
  9. #include "map.h"
  10. #include "CSemiDefHandler.h"
  11. class CAmbarCendamo
  12. {
  13. public:
  14. /////////////////zmienne skladowe
  15. Mapa map;
  16. std::ifstream * is; // stream used to read map file
  17. int andame; // length of map file
  18. unsigned char * bufor; // here we store map bytecode
  19. std::vector<CSemiDefHandler*> defs;
  20. /////////////////funkcje skladowe
  21. CAmbarCendamo (const char * tie); // c-tor; tie is the path of the map file
  22. ~CAmbarCendamo (); // d-tor
  23. int readNormalNr (int pos, int bytCon=4); //read number from bytCon bytes starting from pos position in buffer
  24. void teceDef (); // create files with info about defs
  25. void deh3m(); // decode file, results are stored in map
  26. void loadDefs();
  27. };
  28. #endif //AMBARCENDD