Added a player searcher

This can be used in scripts to search for Player* objects within a given
range.
This commit is contained in:
Epicurus4
2015-02-10 22:16:07 -05:00
parent 36963f2442
commit 4ffdf3396d
4 changed files with 18 additions and 0 deletions
@@ -677,3 +677,8 @@ void GetGameObjectListWithEntryInGrid(std::list<GameObject*>& list, WorldObject*
{
source->GetGameObjectListWithEntryInGrid(list, entry, maxSearchRange);
}
void GetPlayerListInGrid(std::list<Player*>& list, WorldObject* source, float maxSearchRange)
{
source->GetPlayerListInGrid(list, maxSearchRange);
}