Changeset 44 for trunk/src/game/GridNotifiers.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/GridNotifiers.h
r37 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 19 #ifndef MANGOS_GRIDNOTIFIERS_H20 #define MANGOS_GRIDNOTIFIERS_H21 #ifndef TRINITY_GRIDNOTIFIERS_H 22 #define TRINITY_GRIDNOTIFIERS_H 21 23 22 24 #include "ObjectGridLoader.h" … … 35 37 //class Map; 36 38 37 namespace MaNGOS39 namespace Trinity 38 40 { 39 41 40 struct MANGOS_DLL_DECL PlayerNotifier42 struct TRINITY_DLL_DECL PlayerNotifier 41 43 { 42 44 explicit PlayerNotifier(Player &pl) : i_player(pl) {} … … 46 48 }; 47 49 48 struct MANGOS_DLL_DECL VisibleNotifier50 struct TRINITY_DLL_DECL VisibleNotifier 49 51 { 50 52 Player &i_player; … … 60 62 }; 61 63 62 struct MANGOS_DLL_DECL VisibleChangesNotifier64 struct TRINITY_DLL_DECL VisibleChangesNotifier 63 65 { 64 66 WorldObject &i_object; … … 69 71 }; 70 72 71 struct MANGOS_DLL_DECL GridUpdater73 struct TRINITY_DLL_DECL GridUpdater 72 74 { 73 75 GridType &i_grid; … … 88 90 }; 89 91 90 struct MANGOS_DLL_DECL MessageDeliverer92 struct TRINITY_DLL_DECL MessageDeliverer 91 93 { 92 94 Player &i_player; … … 98 100 }; 99 101 100 struct MANGOS_DLL_DECL ObjectMessageDeliverer102 struct TRINITY_DLL_DECL ObjectMessageDeliverer 101 103 { 102 104 WorldPacket *i_message; … … 106 108 }; 107 109 108 struct MANGOS_DLL_DECL MessageDistDeliverer110 struct TRINITY_DLL_DECL MessageDistDeliverer 109 111 { 110 112 Player &i_player; … … 118 120 }; 119 121 120 struct MANGOS_DLL_DECL ObjectMessageDistDeliverer122 struct TRINITY_DLL_DECL ObjectMessageDistDeliverer 121 123 { 122 124 WorldObject &i_object; … … 128 130 }; 129 131 130 struct MANGOS_DLL_DECL ObjectUpdater132 struct TRINITY_DLL_DECL ObjectUpdater 131 133 { 132 134 uint32 i_timeDiff; … … 139 141 140 142 template<class T> 141 struct MANGOS_DLL_DECL ObjectAccessorNotifier143 struct TRINITY_DLL_DECL ObjectAccessorNotifier 142 144 { 143 145 T *& i_object; … … 165 167 }; 166 168 167 struct MANGOS_DLL_DECL PlayerRelocationNotifier169 struct TRINITY_DLL_DECL PlayerRelocationNotifier 168 170 { 169 171 Player &i_player; … … 174 176 }; 175 177 176 struct MANGOS_DLL_DECL CreatureRelocationNotifier178 struct TRINITY_DLL_DECL CreatureRelocationNotifier 177 179 { 178 180 Creature &i_creature; … … 184 186 }; 185 187 186 struct MANGOS_DLL_DECL DynamicObjectUpdater188 struct TRINITY_DLL_DECL DynamicObjectUpdater 187 189 { 188 190 DynamicObject &i_dynobject; … … 210 212 211 213 template<class Check> 212 struct MANGOS_DLL_DECL WorldObjectSearcher214 struct TRINITY_DLL_DECL WorldObjectSearcher 213 215 { 214 216 WorldObject* &i_object; … … 227 229 228 230 template<class Check> 229 struct MANGOS_DLL_DECL WorldObjectListSearcher231 struct TRINITY_DLL_DECL WorldObjectListSearcher 230 232 { 231 233 std::list<WorldObject*> &i_objects; … … 244 246 245 247 template<class Do> 246 struct MANGOS_DLL_DECL WorldObjectWorker248 struct TRINITY_DLL_DECL WorldObjectWorker 247 249 { 248 250 Do const& i_do; … … 285 287 286 288 template<class Check> 287 struct MANGOS_DLL_DECL GameObjectSearcher289 struct TRINITY_DLL_DECL GameObjectSearcher 288 290 { 289 291 GameObject* &i_object; … … 299 301 // Last accepted by Check GO if any (Check can change requirements at each call) 300 302 template<class Check> 301 struct MANGOS_DLL_DECL GameObjectLastSearcher303 struct TRINITY_DLL_DECL GameObjectLastSearcher 302 304 { 303 305 GameObject* &i_object; … … 312 314 313 315 template<class Check> 314 struct MANGOS_DLL_DECL GameObjectListSearcher316 struct TRINITY_DLL_DECL GameObjectListSearcher 315 317 { 316 318 std::list<GameObject*> &i_objects; … … 328 330 // First accepted by Check Unit if any 329 331 template<class Check> 330 struct MANGOS_DLL_DECL UnitSearcher332 struct TRINITY_DLL_DECL UnitSearcher 331 333 { 332 334 Unit* &i_object; … … 343 345 // Last accepted by Check Unit if any (Check can change requirements at each call) 344 346 template<class Check> 345 struct MANGOS_DLL_DECL UnitLastSearcher347 struct TRINITY_DLL_DECL UnitLastSearcher 346 348 { 347 349 Unit* &i_object; … … 358 360 // All accepted by Check units if any 359 361 template<class Check> 360 struct MANGOS_DLL_DECL UnitListSearcher362 struct TRINITY_DLL_DECL UnitListSearcher 361 363 { 362 364 std::list<Unit*> &i_objects; … … 374 376 375 377 template<class Check> 376 struct MANGOS_DLL_DECL CreatureSearcher378 struct TRINITY_DLL_DECL CreatureSearcher 377 379 { 378 380 Creature* &i_object; … … 388 390 // Last accepted by Check Creature if any (Check can change requirements at each call) 389 391 template<class Check> 390 struct MANGOS_DLL_DECL CreatureLastSearcher392 struct TRINITY_DLL_DECL CreatureLastSearcher 391 393 { 392 394 Creature* &i_object; … … 401 403 402 404 template<class Check> 403 struct MANGOS_DLL_DECL CreatureListSearcher405 struct TRINITY_DLL_DECL CreatureListSearcher 404 406 { 405 407 std::list<Creature*> &i_objects; … … 416 418 417 419 template<class Check> 418 struct MANGOS_DLL_DECL PlayerSearcher420 struct TRINITY_DLL_DECL PlayerSearcher 419 421 { 420 422 Player* &i_object; … … 429 431 430 432 template<class Do> 431 struct MANGOS_DLL_DECL PlayerWorker433 struct TRINITY_DLL_DECL PlayerWorker 432 434 { 433 435 Do& i_do;