Level class final
#include <Level.hpp>

Constructors, destructors, conversion operators

Level()
Level(const int width, const int height, const Color& background_color = Color(ColorName::BLACK))

Public functions

void update()
void render() const
auto getTilesets() -> std::vector<Tileset>*
auto getTileCollisions() -> std::unordered_map<int, TileCollision>*
void addLayer(std::unique_ptr<Layer> layer)
void addTileSet(const Tileset& tileset)
void addTileCollision(const int id, const TileCollision shape)
auto getPlayer() const -> Player*
void setPlayer(Player*const player)
auto spawnObject(const std::string& type, std::unique_ptr<LoaderParams> const& params) const -> Object*
auto getBackgroundColor() const -> Color
auto getMapWidth() const -> int
auto getMapHeight() const -> int