Changeset 272 for trunk/src/game/ObjectAccessor.h
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ObjectAccessor.h
r268 r272 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 187 187 188 188 void Update(uint32 diff); 189 void UpdatePlayers(uint32 diff);190 189 191 190 Corpse* GetCorpseForPlayerGUID(uint64 guid); … … 195 194 Corpse* ConvertCorpseForPlayer(uint64 player_guid); 196 195 196 bool ActiveObjectsNearGrid(uint32 x,uint32 y,uint32 m_id,uint32 i_id) const; 197 197 198 static void UpdateObject(Object* obj, Player* exceptPlayer); 198 199 static void _buildUpdateObject(Object* obj, UpdateDataMapType &); … … 200 201 static void UpdateObjectVisibility(WorldObject* obj); 201 202 static void UpdateVisibilityForPlayer(Player* player); 203 204 void AddActiveObject(WorldObject*); 205 void RemoveActiveObject(WorldObject*); 202 206 private: 203 207 struct WorldObjectChangeAccumulator … … 224 228 void _update(void); 225 229 std::set<Object *> i_objects; 230 std::set<WorldObject *> i_activeobjects; 226 231 LockType i_playerGuard; 227 232 LockType i_updateGuard;