aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.h
diff options
context:
space:
mode:
authorw12x <none@none>2008-10-19 11:07:10 -0500
committerw12x <none@none>2008-10-19 11:07:10 -0500
commitbc05228d9f788d0ca67dfdaba30e8e4a4c6ee61f (patch)
treed861874f6d05aee8c0290e3b2d26b48e28c2d4a7 /src/game/Map.h
parente78b34c63fccc5ba7e5fb7fc057d48c63876b8be (diff)
[svn] Finally really fixed compile. Also, removed Unit::GetObjectInWorld(), use Map::GetCreatureInMap() and Map::GetGameObjectInMap() instead. This is to prevent creature-creature interaction on different maps, which would make the later multithreading of maps impossible.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.h')
-rw-r--r--src/game/Map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Map.h b/src/game/Map.h
index 8da3939a914..11ea7e2be61 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -234,6 +234,8 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O
void resetMarkedCells() { marked_cells.reset(); }
bool isCellMarked(uint32 pCellId) { return marked_cells.test(pCellId); }
void markCell(uint32 pCellId) { marked_cells.set(pCellId); }
+ Creature* GetCreatureInMap(uint64 guid);
+ GameObject* GetGameObjectInMap(uint64 guid);
private:
void LoadVMap(int pX, int pY);
void LoadMap(uint32 mapid, uint32 instanceid, int x,int y);