diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
| commit | 0e0389752a0912614737e5c059b5cd4719ef9cf2 (patch) | |
| tree | fc39e676bd819ee973f27fc40150a7874d2f8503 /src/map.cpp | |
| parent | 7f0e8c7ef70c62814c274f110367db92f01cbb26 (diff) | |
| download | therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.gz therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.bz2 therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.zip | |
Const correctness!
Also created savefile and refactored collisions a bit.
Diffstat (limited to 'src/map.cpp')
| -rw-r--r-- | src/map.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/map.cpp b/src/map.cpp index 87080e8..3976b63 100644 --- a/src/map.cpp +++ b/src/map.cpp | |||
| @@ -67,32 +67,32 @@ void swap(Map& first, Map& second) | |||
| 67 | std::swap(first.m_rightMap, second.m_rightMap); | 67 | std::swap(first.m_rightMap, second.m_rightMap); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | const int* Map::mapdata() | 70 | const int* Map::mapdata() const |
| 71 | { | 71 | { |
| 72 | return m_mapdata; | 72 | return m_mapdata; |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | const char* Map::title() | 75 | const char* Map::title() const |
| 76 | { | 76 | { |
| 77 | return m_title; | 77 | return m_title; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | Map* Map::getLeftMap() | 80 | const Map* Map::getLeftMap() const |
| 81 | { | 81 | { |
| 82 | return m_leftMap; | 82 | return m_leftMap; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | Map* Map::getRightMap() | 85 | const Map* Map::getRightMap() const |
| 86 | { | 86 | { |
| 87 | return m_rightMap; | 87 | return m_rightMap; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | void Map::setLeftMap(Map* m) | 90 | void Map::setLeftMap(const Map* m) |
| 91 | { | 91 | { |
| 92 | m_leftMap = m; | 92 | m_leftMap = m; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void Map::setRightMap(Map* m) | 95 | void Map::setRightMap(const Map* m) |
| 96 | { | 96 | { |
| 97 | m_rightMap = m; | 97 | m_rightMap = m; |
| 98 | } | 98 | } |
