Changeset 61
- Timestamp:
- 11/19/08 13:30:29 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Map.cpp
r44 r61 1561 1561 } 1562 1562 1563 Creature * Map::GetCreatureInMap(uint64 guid) 1564 { 1565 Creature * obj = HashMapHolder<Creature>::Find(guid); 1566 if(obj && obj->GetInstanceId() != GetInstanceId()) obj = NULL; 1567 return obj; 1568 } 1569 1570 GameObject * Map::GetGameObjectInMap(uint64 guid) 1571 { 1572 GameObject * obj = HashMapHolder<GameObject>::Find(guid); 1573 if(obj && obj->GetInstanceId() != GetInstanceId()) obj = NULL; 1574 return obj; 1575 } 1576 1563 1577 void InstanceMap::CreateInstanceData(bool load) 1564 1578 { -
trunk/src/game/Map.h
r44 r61 235 235 bool isCellMarked(uint32 pCellId) { return marked_cells.test(pCellId); } 236 236 void markCell(uint32 pCellId) { marked_cells.set(pCellId); } 237 Creature* GetCreatureInMap(uint64 guid); 238 GameObject* GetGameObjectInMap(uint64 guid); 237 239 private: 238 240 void LoadVMap(int pX, int pY); -
trunk/src/game/Unit.cpp
r60 r61 9397 9397 } 9398 9398 9399 template<class T> T*9400 Unit::GetObjectInWorld(uint64 guid, T* /*fake*/)9401 {9402 return ObjectAccessor::GetObjectInWorld(uint64 guid, T* /*fake*/);9403 }9404 9405 9399 bool Unit::isVisibleForInState( Player const* u, bool inVisibleList ) const 9406 9400 { -
trunk/src/game/Unit.h
r59 r61 1219 1219 void removeFollower(FollowerReference* /*pRef*/ ) { /* nothing to do yet */ } 1220 1220 static Unit* GetUnit(WorldObject& object, uint64 guid); 1221 template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/);1222 1221 1223 1222 MotionMaster* GetMotionMaster() { return &i_motionMaster; }