[This is preliminary documentation and is subject to change.]
Assembly: cai-nav (in cai-nav.dll) Version: 0.4.0.0 (0.4.0.0)
XNA Framework Only
.NET Compact Framework Only
Constructor for a filter with the maximum number of areas. (MaxArea + 1)
The number of in use areas.
Creates a new filter with the same state as the current filter.
The default area cost.
The default exclude flags.
The default include flags.
The flags for polygons that should be excluded from the query. [Default: DefaultExcludeFlags]
The flags for polygons that should be included in the query. [Default: DefaultIncludeFlags]
True if the object has been disposed and should no longer be used.(Overrides ManagedObject..::..IsDisposed.)
The traversal cost for each area, indexed by area. [Default: DefaultAreaCost]
Request all unmanaged resources controlled by the object be immediately freed and the object marked as disposed.(Overrides ManagedObject..::..RequestDisposal()()()().)
The way filtering works, a navigation mesh polygon must have at least one flag set to ever be considered by a query. So setting the include flags to 0 will always result in all polygons being excluded.
The array form is used to access area cost. E.g. myFilter = 2.5f
Warning: Behavior is undefined if an area index is out of range. The error may result in a runtime error, or it may operate as if there is no problem whatsoever. E.g. Setting and getting myFilter[myFilter.AreaCount] may get and set the value normally. Do not write code that depends on this behavior since it may change in future releases.
Behavior is undefined if used after disposal.