changes
This commit is contained in:
+1
-9
@@ -7,23 +7,15 @@
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <array>
|
||||
|
||||
struct Level {
|
||||
std::array<std::array<char, MAX_COLS>, MAX_ROWS> data;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
void clear_map();
|
||||
void load_map(const std::array<std::array<char, MAX_COLS>, MAX_ROWS> map_data);
|
||||
int get_current_level();
|
||||
void set_current_level(int level);
|
||||
std::array<std::array<Wall*, MAX_COLS>, MAX_ROWS> wall_list = {};
|
||||
std::array<std::array<Object*, MAX_COLS>, MAX_ROWS> wall_list = {};
|
||||
private:
|
||||
int current_level = 1;
|
||||
|
||||
};
|
||||
|
||||
extern std::vector<Level> levels;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user