AbstractUniformGridTCell, TPoint Class |
Namespace: Gamelogic.Grids
[SerializableAttribute] [VersionAttribute(1, 0, 0)] public abstract class AbstractUniformGrid<TCell, TPoint> : IVectorGrid<TCell, TPoint, TPoint>, IGrid<TCell, TPoint>, IGrid<TPoint>, IGridSpace<TPoint>, IEnumerable<TPoint>, IEnumerable where TPoint : Object, IGridPoint<TPoint>, IVectorPoint<TPoint>
The AbstractUniformGridTCell, TPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| AbstractUniformGridTCell, TPoint |
Constructs a new hex grid with a shape determined by the IsInsider shape.
|
| Name | Description | |
|---|---|---|
| GridOrigin |
Gives the Zero point as transform by this grids transforms.
| |
| InversePointTransform | ||
| Item |
Gets the cell at the specified point.
| |
| NeighborDirections | ||
| PointTransform | ||
| Values |
| Name | Description | |
|---|---|---|
| ArrayPointFromPoint(TPoint) | ||
| ArrayPointFromPoint(Int32, Int32) | ||
| CloneStructureTNewCell | ||
| Contains |
Checks whether the given point is inside the grid, or not.
This function must be consistent with the enumerator that is returned
with GetEnumerator(all points returned by the enumerator must be Inside,
and all points that are inside must be returned by the enumerator).
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetAllNeighbors | ||
| GetEnumerator | ||
| GetHashCode | (Inherited from Object.) | |
| GetLargeSet |
This functions returns a large number of points around the origin.
This is useful(when used with big enough n) to determine
whether a grid that is missing points is doing so becuase of
an incorrect test function, or an incorrect storage rectangle.
Use for debugging.
| |
| GetNeighborDirections |
The only legal cellIndex to pass to this methid is 0
| |
| GetStoragePoints |
This method returns all points that can be contined by
the storage rectangle for this grid.
This is useful for debuggong shape functions.
| |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| PointFromArrayPoint | ||
| SetGridPointTransforms |
Set the GridPointTransform and InverseGridPointTransform.
| |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| ButFirstTPoint |
Returns an enumerable of all elements of the given list but the first,
keeping them in order.
(Defined by CollectionExtensions.) | |
| ButLastTPoint |
Returns an enumerable of all elements in the given
list but the last, keeping them in order.
(Defined by CollectionExtensions.) | |
| CombinationsTPoint |
Generates all combinations of m elements selected from the list.
(Defined by Combinatorial.) | |
| FilterByTypeTPoint, TFilter |
Returns all elements of the source which are of FilterType.
(Defined by CollectionExtensions.) | |
| ListToStringTPoint |
Returns a pretty string representation of the given list. The resulting string looks something like
[a, b, c].
(Defined by CollectionExtensions.) | |
| MaxByTPoint(FuncTPoint, IComparable) | Overloaded.
Finds the maximum element in the source as scored by the given function.
(Defined by CollectionExtensions.) | |
| MaxByTPoint, TKey(FuncTPoint, TKey) | Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.) | |
| MaxByTPoint, TKey(FuncTPoint, 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.) | |
| MinByTPoint, TKey(FuncTPoint, TKey) | Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.) | |
| MinByTPoint, TKey(FuncTPoint, 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.) | |
| PartitionsTPoint |
Returns a list of all the partitions of a list.
(Defined by Combinatorial.) | |
| PermutationsTPoint |
Generates all permutations of the list of elements.
(Defined by Combinatorial.) | |
| PowerSetTPoint |
Returns the power set of the input, that is, the set of all subsets of the input.
(Defined by Combinatorial.) | |
| RandomItemTPoint | Overloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.) | |
| RandomItemTPoint(IRandom) | Overloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.) | |
| RotateLeftTPoint |
Returns a enumerable with elements in order, but the first element is moved to the end.
(Defined by CollectionExtensions.) | |
| RotateRightTPoint |
Returns a enumerable with elements in order, but the last element is moved to the front.
(Defined by CollectionExtensions.) | |
| SampleRandomTPoint(Int32) | Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.) | |
| SampleRandomTPoint(Int32, IRandom) | Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.) | |
| TakeHalfTPoint |
Returns the first half of elements from a source.
(Defined by CollectionExtensions.) | |
| TakeLastTPoint |
Returns the last n elements from a source.
(Defined by CollectionExtensions.) | |
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) | |
| ToPeriodicGeneratorTPoint | (Defined by GeneratorExtensions.) | |
| ToRandomElementGeneratorTPoint | (Defined by GeneratorExtensions.) | |
| TuplesTPoint | (Defined by Combinatorial.) |
| Name | Description | |
|---|---|---|
| IEnumerableGetEnumerator | ||
| IGridTPointItem | ||
| IGridTPointValues |