1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-26 08:41:13 +02:00
vcmi/hch/CAmbarCendamo.cpp
Michał W. Urbańczyk c351496a47 * moved map reading to the map.cpp
* merged changes from trunk (since r461)
2008-06-21 13:27:52 +00:00

43 lines
1.2 KiB
C++

//#define VCMI_DLL
//#include "../stdafx.h"
//#include "CAmbarCendamo.h"
//#include "CObjectHandler.h"
//#include "CDefObjInfoHandler.h"
//#include <set>
//#include <sstream>
//#include <fstream>
//#include "../lib/VCMI_Lib.h"
//std::string nameFromType (EterrainType typ);
//int readInt(unsigned char * bufor, int bytCon)
//{
// int ret=0;
// int amp=1;
// for (int i=0; i<bytCon; i++)
// {
// ret+=bufor[i]*amp;
// amp*=256;
// }
// return ret;
//}
//CAmbarCendamo::CAmbarCendamo (unsigned char * data)
////:map(data)
//{}
////CAmbarCendamo::CAmbarCendamo (const char * tie)
////{
//// std::ifstream * is = new std::ifstream();
//// is -> open(tie,std::ios::binary);
//// is->seekg(0,std::ios::end); // na koniec
//// int andame = is->tellg(); // read length
//// is->seekg(0,std::ios::beg); // wracamy na poczatek
//// bufor = new unsigned char[andame]; // allocate memory
//// is->read((char*)bufor, andame); // read map file to buffer
//// is->close();
//// delete is;
////}
//CAmbarCendamo::~CAmbarCendamo ()
//{// free memory
// for (int ii=0;ii<map.width;ii++)
// delete map.terrain[ii] ;
// delete map.terrain;
// delete[] bufor;
//}