diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 19:47:51 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 19:47:51 -0400 |
| commit | eb61ec5578bf45d454d9d0c9fba523b7803a5ed9 (patch) | |
| tree | 1e775a62313618a7dc8f1dfc6b1687e579ab3b13 /src/map.h | |
| parent | dca2aea57957c6af1af535f23ae392e7517ebd51 (diff) | |
| download | therapy-eb61ec5578bf45d454d9d0c9fba523b7803a5ed9.tar.gz therapy-eb61ec5578bf45d454d9d0c9fba523b7803a5ed9.tar.bz2 therapy-eb61ec5578bf45d454d9d0c9fba523b7803a5ed9.zip | |
Fixed error with empty left and right maps
Diffstat (limited to 'src/map.h')
| -rw-r--r-- | src/map.h | 8 |
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/map.h b/src/map.h index a562bec..3b3d42c 100644 --- a/src/map.h +++ b/src/map.h | |||
| @@ -9,17 +9,17 @@ class Entity; | |||
| 9 | class Map { | 9 | class Map { |
| 10 | public: | 10 | public: |
| 11 | Map(); | 11 | Map(); |
| 12 | Map(const std::string name); | 12 | Map(std::string name); |
| 13 | Map(const Map& map); | 13 | Map(const Map& map); |
| 14 | Map(Map&& map); | 14 | Map(Map&& map); |
| 15 | ~Map(); | 15 | ~Map(); |
| 16 | Map& operator= (Map other); | 16 | Map& operator= (Map other); |
| 17 | friend void swap(Map& first, Map& second); | 17 | friend void swap(Map& first, Map& second); |
| 18 | 18 | ||
| 19 | static Map& getNamedMap(const std::string name); | 19 | static Map& getNamedMap(std::string name); |
| 20 | 20 | ||
| 21 | const int* getMapdata() const; | 21 | const int* getMapdata() const; |
| 22 | const char* getTitle() const; | 22 | std::string getTitle() const; |
| 23 | const Map* getLeftMap() const; | 23 | const Map* getLeftMap() const; |
| 24 | const Map* getRightMap() const; | 24 | const Map* getRightMap() const; |
| 25 | void setLeftMap(const Map* m); | 25 | void setLeftMap(const Map* m); |
| @@ -34,7 +34,7 @@ class Map { | |||
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | int* mapdata; | 36 | int* mapdata; |
| 37 | char* title; | 37 | std::string title; |
| 38 | std::string name; | 38 | std::string name; |
| 39 | const Map* leftMap = nullptr; | 39 | const Map* leftMap = nullptr; |
| 40 | const Map* rightMap = nullptr; | 40 | const Map* rightMap = nullptr; |
