aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Map.hpp
blob: 81c456ed99209859ff02ad6acc99abe7310994f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MAP_HPP
#define MAP_HPP

#include "Tile.hpp"

#include <vector>

class Map
{
public:
    const unsigned width;
    const unsigned height;

    Map();

    Tile& tile(unsigned x, unsigned y);
    const std::vector<Tile>& tiles() const;

    bool moveActor(Tile &from, Tile &to);

private:
    std::vector<Tile> _tiles;
};

#endif