#ifndef TILEMAP_H #define TILEMAP_H #include #include using namespace std; class TileMap { public: //3 arrays to store the converted 2D map layer data vector background; vector foreground; vector collision; int mapWidth; int mapHeight; int getTile(int x, int y) const; int setTile(int x, int y, int tileID) const; void loadMap(string file); }; #endif