player bounding box almost there
This commit is contained in:
+11
-8
@@ -1,24 +1,27 @@
|
||||
#ifndef MAPS_HPP
|
||||
#define MAPS_HPP
|
||||
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <array>
|
||||
#include <memory>
|
||||
|
||||
#include "data.hpp"
|
||||
#include "elements.hpp"
|
||||
#include "globals.hpp"
|
||||
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <array>
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
class Manager
|
||||
{
|
||||
public:
|
||||
void clear();
|
||||
void load(const std::array<std::array<char, MAX_COLS>, MAX_ROWS> map_data);
|
||||
void load(LevelData level);
|
||||
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 = {};
|
||||
std::array<std::array<std::unique_ptr<Object>, MAX_COLS>, MAX_ROWS> tilemap = {};
|
||||
|
||||
private:
|
||||
private:
|
||||
int _active = 1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user