26 lines
505 B
C++
26 lines
505 B
C++
#ifndef MAPS_HPP
|
|
#define MAPS_HPP
|
|
|
|
#include "elements.hpp"
|
|
#include "globals.hpp"
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
#include <array>
|
|
|
|
class Manager {
|
|
public:
|
|
void clear();
|
|
void load(const std::array<std::array<char, MAX_COLS>, MAX_ROWS> map_data);
|
|
void draw(sf::RenderWindow& window);
|
|
void set_next();
|
|
void set_previous();
|
|
int get_active();
|
|
void set_active(int level);
|
|
std::array<std::array<Object*, MAX_COLS>, MAX_ROWS> wall_list = {};
|
|
|
|
private:
|
|
int _active = 1;
|
|
};
|
|
|
|
#endif
|