LayeredGridTCell, TPoint Class |
Namespace: Gamelogic.Grids
[VersionAttribute(1, 8, 0)] [ExperimentalAttribute] public class LayeredGrid<TCell, TPoint> : IGrid<TCell, LayeredPoint<TPoint>>, IGrid<LayeredPoint<TPoint>>, IGridSpace<LayeredPoint<TPoint>>, IEnumerable<LayeredPoint<TPoint>>, IEnumerable where TPoint : Object, IGridPoint<TPoint>
The LayeredGridTCell, TPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| Item | ||
| LayerCount | ||
| Values |
| Name | Description | |
|---|---|---|
| CloneStructureTNewCell | ||
| Contains | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetAllNeighbors |
This method is not implemented. If you need a layered grid with neighbors configured (for example,
if you want to use path finding or connected shapes), you need to make your own layered grid by extending from this one,
and implement this method.
| |
| GetEnumerator | ||
| GetHashCode | (Inherited from Object.) | |
| GetLargeSet | ||
| GetStoragePoints | ||
| GetType | (Inherited from Object.) | |
| MakeTShapeInfo, TGrid, TPoint2, TVectorPoint, TShapeOp(TShapeInfo) | ||
| MakeTShapeInfo, TGrid, TPoint2, TVectorPoint, TShapeOp(Int32, TShapeInfo) | ||
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| ButFirstLayeredPointTPoint |
Returns an enumerable of all elements of the given list but the first,
keeping them in order.
(Defined by CollectionExtensions.) | |
| ButLastLayeredPointTPoint |
Returns an enumerable of all elements in the given
list but the last, keeping them in order.
(Defined by CollectionExtensions.) | |
| CombinationsLayeredPointTPoint |
Generates all combinations of m elements selected from the list.
(Defined by Combinatorial.) | |
| ListToStringLayeredPointTPoint |
Returns a pretty string representation of the given list. The resulting string looks something like
[a, b, c].
(Defined by CollectionExtensions.) | |
| MaxByLayeredPointTPoint(FuncLayeredPointTPoint, IComparable) | Overloaded.
Finds the maximum element in the source as scored by the given function.
(Defined by CollectionExtensions.) | |
| MaxByLayeredPointTPoint, TKey(FuncLayeredPointTPoint, TKey) | Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.) | |
| MaxByLayeredPointTPoint, TKey(FuncLayeredPointTPoint, TKey, IComparerTKey) | Overloaded.
Finds the minimum element in the source as scored by the given function applied to a projection on the elements.
(Defined by CollectionExtensions.) | |
| MinByLayeredPointTPoint, TKey(FuncLayeredPointTPoint, TKey) | Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.) | |
| MinByLayeredPointTPoint, TKey(FuncLayeredPointTPoint, TKey, IComparerTKey) | Overloaded.
Finds the minimum element in the source as scored by the given function applied to a projection on the elements.
(Defined by CollectionExtensions.) | |
| PartitionsLayeredPointTPoint |
Returns a list of all the partitions of a list.
(Defined by Combinatorial.) | |
| PermutationsLayeredPointTPoint |
Generates all permutations of the list of elements.
(Defined by Combinatorial.) | |
| PowerSetLayeredPointTPoint |
Returns the power set of the input, that is, the set of all subsets of the input.
(Defined by Combinatorial.) | |
| RandomItemLayeredPointTPoint | Overloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.) | |
| RandomItemLayeredPointTPoint(IRandom) | Overloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.) | |
| RotateLeftLayeredPointTPoint |
Returns a enumerable with elements in order, but the first element is moved to the end.
(Defined by CollectionExtensions.) | |
| RotateRightLayeredPointTPoint |
Returns a enumerable with elements in order, but the last element is moved to the front.
(Defined by CollectionExtensions.) | |
| SampleRandomLayeredPointTPoint(Int32) | Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.) | |
| SampleRandomLayeredPointTPoint(Int32, IRandom) | Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.) | |
| TakeHalfLayeredPointTPoint |
Returns the first half of elements from a source.
(Defined by CollectionExtensions.) | |
| TakeLastLayeredPointTPoint |
Returns the last n elements from a source.
(Defined by CollectionExtensions.) | |
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) | |
| ToPeriodicGeneratorLayeredPointTPoint | (Defined by GeneratorExtensions.) | |
| ToPointListLayeredPointTPoint |
This method performs the same function as ToList, but returns a PointList instead.
(Defined by IEnumerableExtensions.) | |
| ToRandomElementGeneratorLayeredPointTPoint | (Defined by GeneratorExtensions.) | |
| TuplesLayeredPointTPoint | (Defined by Combinatorial.) |