Changeset 268 for trunk/src/game/Map.h

Show
Ignore:
Timestamp:
11/21/08 21:45:30 (17 years ago)
Author:
yumileroy
Message:

*Move object update from objectaccessor to map
*Move activeobject list from objectaccessor to map
*Open grid for all active creatures (previously only for possessed ones)

Original author: megamage
Date: 2008-11-21 15:41:18-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Map.h

    r260 r268  
    243243        uint32 GetPlayersCountExceptGMs() const; 
    244244        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); } 
    245249 
    246250        void SendToPlayers(WorldPacket const* data) const; 
     
    288292        inline void setNGrid(NGridType* grid, uint32 x, uint32 y); 
    289293 
     294        void UpdateActiveCells(const float &x, const float &y, const uint32 &t_diff); 
    290295    protected: 
    291296        typedef Trinity::ObjectLevelLockable<Map, ZThread::Mutex>::Lock Guard; 
     
    308313        time_t i_gridExpiry; 
    309314 
     315        std::set<WorldObject *> i_activeObjects; 
    310316        std::set<WorldObject *> i_objectsToRemove; 
    311317