Changeset 268 for trunk/src/game/Map.h
- Timestamp:
- 11/21/08 21:45:30 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Map.h
r260 r268 243 243 uint32 GetPlayersCountExceptGMs() const; 244 244 bool PlayersNearGrid(uint32 x,uint32 y) const; 245 bool ActiveObjectsNearGrid(uint32 x, uint32 y) const; 246 247 void AddActiveObject(WorldObject* obj) { i_activeObjects.insert(obj); } 248 void RemoveActiveObject(WorldObject* obj) { i_activeObjects.erase(obj); } 245 249 246 250 void SendToPlayers(WorldPacket const* data) const; … … 288 292 inline void setNGrid(NGridType* grid, uint32 x, uint32 y); 289 293 294 void UpdateActiveCells(const float &x, const float &y, const uint32 &t_diff); 290 295 protected: 291 296 typedef Trinity::ObjectLevelLockable<Map, ZThread::Mutex>::Lock Guard; … … 308 313 time_t i_gridExpiry; 309 314 315 std::set<WorldObject *> i_activeObjects; 310 316 std::set<WorldObject *> i_objectsToRemove; 311 317