diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-04 16:58:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-04 16:58:20 +0000 |
commit | ce849af300a70425b574b724c62dc9f5fce6016b (patch) | |
tree | 2e5cc9fb5d5fda6a7fba4ffc87fa012de23da745 /src/map.cpp | |
parent | 0d189c79a2d3be98e176987e6aca15fd2c618ef0 (diff) | |
download | manaserv-ce849af300a70425b574b724c62dc9f5fce6016b.tar.gz manaserv-ce849af300a70425b574b724c62dc9f5fce6016b.tar.bz2 manaserv-ce849af300a70425b574b724c62dc9f5fce6016b.tar.xz manaserv-ce849af300a70425b574b724c62dc9f5fce6016b.zip |
Generalized the properties functionality as was done in the client before.
Removed some more remaining usages of tmwserv namespace. Added some
documentation and de-complicized the code a bit. Removed checks for SDL and
SDL_net.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/map.cpp b/src/map.cpp index 436a9c42..89c34ee6 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -147,31 +147,6 @@ Map::getTileHeight() return tileHeight; } -std::string -Map::getProperty(const std::string &name) -{ - std::map<std::string,std::string>::iterator i = properties.find(name); - - if (i != properties.end()) - { - return (*i).second; - } - - return ""; -} - -bool -Map::hasProperty(const std::string &name) -{ - return (properties.find(name) != properties.end()); -} - -void -Map::setProperty(const std::string &name, const std::string &value) -{ - properties[name] = value; -} - std::list<PATH_NODE> Map::findPath(int startX, int startY, int destX, int destY) { |