Merge pull request #820 from nolt/feature-bots
(cherry picked from commit b10de0645a869485fbb5771a739abd06b5708c2d)
This commit is contained in:
@@ -131,6 +131,17 @@ public class GameMap
|
||||
return this._areaOfInterestManager.GetInRange(point, range).OfType<IAttackable>().ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all non-player characters (e.g. merchants) within the specified range of a point.
|
||||
/// </summary>
|
||||
/// <param name="point">The coordinates.</param>
|
||||
/// <param name="range">The range.</param>
|
||||
/// <returns>The non-player characters in range of the specified coordinate.</returns>
|
||||
public IList<NonPlayerCharacter> GetNpcsInRange(Point point, int range)
|
||||
{
|
||||
return this._areaOfInterestManager.GetInRange(point, range).OfType<NonPlayerCharacter>().ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all dropped items and money within the specified range of a point.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user