#pragma once ////////// // INCLUDES // ////////// #include #include #include /////////////////// // MY CLASS INCLUDES // /////////////////// #include "core\Game.hpp" class Tilemap : public sf::Drawable, public sf::Transformable { public: Tilemap(); bool load(Game &game, const unsigned int map_height, const unsigned int map_width, const float tile_size); bool read(const std::string& path); int getLevelData(); private: virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const; private: sf::VertexArray m_vertices; sf::Texture m_tileset; sf::Sprite m_tileset_spr; std::string line; int m_level[]; };