2023-06-11 13:24:27 +02:00
|
|
|
#ifndef HOLESOME_TILEMAP_HPP
|
|
|
|
#define HOLESOME_TILEMAP_HPP
|
|
|
|
|
|
|
|
|
|
|
|
#include <SFML/Graphics/Transformable.hpp>
|
|
|
|
#include <SFML/Graphics/VertexArray.hpp>
|
|
|
|
#include <SFML/Graphics/Texture.hpp>
|
|
|
|
#include "../../game/game_object.h"
|
|
|
|
#include "tileset.hpp"
|
|
|
|
|
2023-06-17 19:48:51 +02:00
|
|
|
class TileMap : public GameObject
|
2023-06-11 13:24:27 +02:00
|
|
|
{
|
|
|
|
public:
|
2023-06-17 19:48:51 +02:00
|
|
|
TileMap(const std::shared_ptr<TileSet>& tileSet, std::vector<std::vector<int>> tiles);
|
2023-06-11 13:24:27 +02:00
|
|
|
|
2023-06-17 19:48:51 +02:00
|
|
|
void createTileAtGridPosition(const std::shared_ptr<SingleSprite>& sprite, GridCoordinates coordinates);
|
2023-06-11 13:24:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //HOLESOME_TILEMAP_HPP
|