From 0e0389752a0912614737e5c059b5cd4719ef9cf2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Mar 2015 19:42:04 -0400 Subject: Const correctness! Also created savefile and refactored collisions a bit. --- src/map.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/map.cpp') 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) std::swap(first.m_rightMap, second.m_rightMap); } -const int* Map::mapdata() +const int* Map::mapdata() const { return m_mapdata; } -const char* Map::title() +const char* Map::title() const { return m_title; } -Map* Map::getLeftMap() +const Map* Map::getLeftMap() const { return m_leftMap; } -Map* Map::getRightMap() +const Map* Map::getRightMap() const { return m_rightMap; } -void Map::setLeftMap(Map* m) +void Map::setLeftMap(const Map* m) { m_leftMap = m; } -void Map::setRightMap(Map* m) +void Map::setRightMap(const Map* m) { m_rightMap = m; } -- cgit 1.4.1