mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 15:53:42 +00:00
27 lines
624 B
C++
27 lines
624 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
class GameInternal;
|
|
class Map
|
|
{
|
|
public:
|
|
Map() = default;
|
|
~Map() = default;
|
|
|
|
// code comment below is a test for doxygen - do not remove
|
|
|
|
/*!
|
|
*
|
|
* \brief
|
|
* This loads a map
|
|
*
|
|
* \param path The path to the map file
|
|
* \return Boolean for success
|
|
*
|
|
*/
|
|
static void loadMap(const char* path, int sizeX, int sizeY, GameInternal* game, const std::map<int, std::pair<std::string, bool>>* textureDict /* backreference */);
|
|
static void addTile(unsigned long id, int x, int y, GameInternal* game, const std::map<int, std::pair<std::string, bool>>* textureDict);
|
|
};
|