summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-05 09:36:56 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-05 09:36:56 +0000
commite880b17081962580afea1d003600afffe062d427 (patch)
tree71caf8087ca1fd431c23ca259d3306d413126d84 /src/map.cpp
parent90290b7aaf2a55187598e67c31d33f5735f574ce (diff)
downloadmana-e880b17081962580afea1d003600afffe062d427.tar.gz
mana-e880b17081962580afea1d003600afffe062d427.tar.bz2
mana-e880b17081962580afea1d003600afffe062d427.tar.xz
mana-e880b17081962580afea1d003600afffe062d427.zip
Declared some methods const.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 1bd8f235..ec4abc50 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -280,7 +280,7 @@ Map::setWalk(int x, int y, bool walkable)
}
bool
-Map::getWalk(int x, int y)
+Map::getWalk(int x, int y) const
{
return !tileCollides(x, y) && !occupied(x, y);
}
@@ -302,7 +302,7 @@ Map::occupied(int x, int y)
}
bool
-Map::tileCollides(int x, int y)
+Map::tileCollides(int x, int y) const
{
return !(contains(x, y) && mMetaTiles[x + y * mWidth].walkable);
}