diff options
| author | megamage <none@none> | 2009-01-03 11:18:19 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-03 11:18:19 -0600 |
| commit | 9dfcd5ba5e0b801f39a2a4c1b71154d9724f7935 (patch) | |
| tree | 627370d0f5859d4635026f731a8c38244d054411 /src/game/GridNotifiers.h | |
| parent | 9438625a19c070ec20d392fa57f1de6a61b7b985 (diff) | |
| parent | 59f85167ab387a8e8b69aaf1d65f9b6994de9ca0 (diff) | |
*Merge with Trinity 768.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.h')
| -rw-r--r-- | src/game/GridNotifiers.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index 5dd863493a8..b00bd33bd24 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -595,6 +595,19 @@ namespace Trinity Unit const* i_funit; float i_range; }; + + class CreatureWithDbGUIDCheck + { + public: + CreatureWithDbGUIDCheck(WorldObject const* obj, uint32 lowguid) : i_obj(obj), i_lowguid(lowguid) {} + bool operator()(Creature* u) + { + return u->GetDBTableGUIDLow() == i_lowguid; + } + private: + WorldObject const* i_obj; + uint32 i_lowguid; + }; class AnyFriendlyUnitInObjectRangeCheck { |
