summaryrefslogtreecommitdiff
path: root/src/game-server/character.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-11 01:38:36 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-11 11:10:34 +0100
commit01977a101d839107d8c28ca31f885f67e660dd68 (patch)
treee03d1bfc3615a9ea4af1fe5f2b6be1f7904d6320 /src/game-server/character.h
parent4e348e907e4e610908971f4ca7e9b791499bd8f1 (diff)
downloadmanaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.gz
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.bz2
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.xz
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.zip
Split path finding out of the Map class
Extracted the path finding algorithm out of the Map class and introduced a new class called PathInfo that has the path finding information that used to be part of MetaTile. This allows a single vector of path information to be shared between all maps running on the server, significantly reducing the memory overhead per map (for 200x200 maps, the memory reduction is about 1 MB per map). Part of this change is some cleanup, like moving the 'occupation' counts into MetaTile, inlining some methods for performance reasons, and using STL to simplify memory management. Mantis-issue: 106 Reviewed-by: Bertram
Diffstat (limited to 'src/game-server/character.h')
-rw-r--r--src/game-server/character.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/character.h b/src/game-server/character.h
index dfbf14e4..5a826908 100644
--- a/src/game-server/character.h
+++ b/src/game-server/character.h
@@ -372,8 +372,8 @@ class Character : public Being
/**
* Gets the way the actor blocks pathfinding for other objects
*/
- virtual Map::BlockType getBlockType() const
- { return Map::BLOCKTYPE_CHARACTER; }
+ virtual BlockType getBlockType() const
+ { return BLOCKTYPE_CHARACTER; }
private:
double getAttrBase(AttributeMap::const_iterator it) const