diff options
author | megamage <none@none> | 2009-05-29 00:18:41 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-29 00:18:41 -0500 |
commit | bc32144310e94e0c7e62c7cd7119bfdd4e719e6f (patch) | |
tree | edb4c10942113f366058e8dd3b51e30a30559989 /src/game/GridNotifiers.h | |
parent | 1288761fb704be6d3c24e8480a809f66200ddf04 (diff) |
*Update OutdoorPvP functions. No longer need creature triggers for capture points.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.h')
-rw-r--r-- | src/game/GridNotifiers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index 87b0a11a226..7eb5c326142 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -460,6 +460,21 @@ namespace Trinity template<class NOT_INTERESTED> void Visit(GridRefManager<NOT_INTERESTED> &) {} }; + template<class Check> + struct TRINITY_DLL_DECL PlayerListSearcher + { + uint32 i_phaseMask; + std::list<Player*> &i_objects; + Check& i_check; + + PlayerListSearcher(WorldObject const* searcher, std::list<Player*> &objects, Check & check) + : i_phaseMask(searcher->GetPhaseMask()), i_objects(objects),i_check(check) {} + + void Visit(PlayerMapType &m); + + template<class NOT_INTERESTED> void Visit(GridRefManager<NOT_INTERESTED> &) {} + }; + template<class Do> struct TRINITY_DLL_DECL PlayerWorker { |