/* * AlternativeMap.h * * Created on: Jun 20, 2015 * Author: colman */ #ifndef ALTERNATIVEMAP_H_ #define ALTERNATIVEMAP_H_ #pragma once #include #include "Cell.h" #include #include "../Models/Size.h" #include "../Managers/ConfigurationManager.h" using namespace std; class AnotherMap { public: AnotherMap(Managers::ConfigurationManager* config); virtual ~AnotherMap(); Cell* getCell(unsigned x, unsigned y); Cell* getResizedCell(unsigned x, unsigned y); Cell* getResizedCellFromImageCoords(unsigned x, unsigned y) { return this->getResizedCell( x * this->gridWidth / this->width, y * this->gridHeight / this->height ); } void saveToFile(string fileName, bool resized = false); unsigned int height; unsigned int width; unsigned int gridWidth; unsigned int gridHeight; vector image; vector grid; Managers::ConfigurationManager* config; vector resizedGrid; }; #endif /* ALTERNATIVEMAP_H_ */