summary refs log tree commit diff stats
path: root/src/map.h
blob: e3d1802fa3c6c9d35e836d196e66bf52ee0b746e (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 char* title();
    Map* getLeftMap();
    Map* getRightMap();
    void setLeftMap(Map* m);
    void setRightMap(Map* m);
  private:
    Map();
    
    int* m_mapdata;
    char* m_title;
    Map* m_leftMap;
    Map* m_rightMap;
};

#endif