VEGO-Engine  0.1
Loading...
Searching...
No Matches
Map.h
1#pragma once
2
3#include <tmxlite/Types.hpp>
4#include <map>
5#include <string>
6
7class GameInternal;
8class Map
9{
10public:
11 Map() = default;
12 ~Map() = default;
13
23 [[deprecated("ID based text files are not supported anymore, use .txm maps instead")]]
24 static void loadMap(const char* path, int sizeX, int sizeY, GameInternal* game, const std::map<int, std::pair<std::string, bool>>* textureDict /* backreference */);
25 [[deprecated]]
26 static void addTile(unsigned long id, int x, int y, GameInternal* game, const std::map<int, std::pair<std::string, bool>>* textureDict);
27
33 static void loadMapTmx(const char* path);
34private:
35 static void addTile(float x, float y, const tmx::Vector2u& mapTileSize, int u, int v, int zIndex, const char* texturePath);
36};
Definition GameInternal.h:24
Definition Map.h:9
static void loadMapTmx(const char *path)
Loads a .tmx map.
Definition Map.cpp:84
static void loadMap(const char *path, int sizeX, int sizeY, GameInternal *game, const std::map< int, std::pair< std::string, bool > > *textureDict)
This loads a map.
Definition Map.cpp:29