C# Class Dwarrowdelf.Client.ItemTracker

Tracks all items in an env. This could/should keep different item categories in different lists, and use http://blogs.msdn.com/b/devdev/archive/2007/06/07/k-nearest-neighbor-spatial-search.aspx to speed up the search by distance.
Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Méthode Description
GetItemsByDistance ( IntVector3 location, bool>.Func filter ) : IEnumerable
GetItemsByDistance ( IntVector3 location, ItemCategory category, bool>.Func filter ) : IEnumerable
GetReachableItemByDistance ( IntVector3 location, IItemFilter filter, Unreachables unreachables ) : ItemObject
ItemTracker ( EnvironmentObject env ) : System

Private Methods

Méthode Description
Environment_ObjectAdded ( MovableObject obj ) : void
Environment_ObjectMoved ( MovableObject obj, IntVector3 oldPos ) : void
Environment_ObjectRemoved ( MovableObject obj ) : void

Method Details

GetItemsByDistance() public méthode

public GetItemsByDistance ( IntVector3 location, bool>.Func filter ) : IEnumerable
location IntVector3
filter bool>.Func
Résultat IEnumerable

GetItemsByDistance() public méthode

public GetItemsByDistance ( IntVector3 location, ItemCategory category, bool>.Func filter ) : IEnumerable
location IntVector3
category ItemCategory
filter bool>.Func
Résultat IEnumerable

GetReachableItemByDistance() public méthode

public GetReachableItemByDistance ( IntVector3 location, IItemFilter filter, Unreachables unreachables ) : ItemObject
location IntVector3
filter IItemFilter
unreachables Unreachables
Résultat ItemObject

ItemTracker() public méthode

public ItemTracker ( EnvironmentObject env ) : System
env EnvironmentObject
Résultat System