CAmbarCendamo.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //#define VCMI_DLL
  2. //#include "../stdafx.h"
  3. //#include "CAmbarCendamo.h"
  4. //#include "CObjectHandler.h"
  5. //#include "CDefObjInfoHandler.h"
  6. //#include <set>
  7. //#include <sstream>
  8. //#include <fstream>
  9. //#include "../lib/VCMI_Lib.h"
  10. //std::string nameFromType (EterrainType typ);
  11. //int readInt(unsigned char * bufor, int bytCon)
  12. //{
  13. // int ret=0;
  14. // int amp=1;
  15. // for (int i=0; i<bytCon; i++)
  16. // {
  17. // ret+=bufor[i]*amp;
  18. // amp*=256;
  19. // }
  20. // return ret;
  21. //}
  22. //CAmbarCendamo::CAmbarCendamo (unsigned char * data)
  23. ////:map(data)
  24. //{}
  25. ////CAmbarCendamo::CAmbarCendamo (const char * tie)
  26. ////{
  27. //// std::ifstream * is = new std::ifstream();
  28. //// is -> open(tie,std::ios::binary);
  29. //// is->seekg(0,std::ios::end); // na koniec
  30. //// int andame = is->tellg(); // read length
  31. //// is->seekg(0,std::ios::beg); // wracamy na poczatek
  32. //// bufor = new unsigned char[andame]; // allocate memory
  33. //// is->read((char*)bufor, andame); // read map file to buffer
  34. //// is->close();
  35. //// delete is;
  36. ////}
  37. //CAmbarCendamo::~CAmbarCendamo ()
  38. //{// free memory
  39. // for (int ii=0;ii<map.width;ii++)
  40. // delete map.terrain[ii] ;
  41. // delete map.terrain;
  42. // delete[] bufor;
  43. //}