summary refs log tree commit diff stats
path: root/src/map.h
blob: 071b6f2b28f9647f382d00de861ea4a1fb16aeae (plain) (blame)
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
26
27
28
#ifndef MAP_H
#define MAP_H

class Map {
  public:
    Map(const char* filename);
    Map(Map& map);
    Map(Map&& map);
    ~Map();
    Map& operator= (Map other);
    friend void swap(Map& first, Map& second);
    
    const int* mapdata() const;
    const char* title() const;
    const Map* getLeftMap() const;
    const Map* getRightMap() const;
    void setLeftMap(const Map* m);
    void setRightMap(const Map* m);
  private:
    Map();
    
    int* m_mapdata;
    char* m_title;
    const Map* m_leftMap = nullptr;
    const Map* m_rightMap = nullptr;
};

#endif