Click or drag to resize

IGridTPoint, TCell Interface

An explicit shape that has for each of its points a value, called a cell, associated.

Namespace:  Gamelogic.Grids2
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public interface IGrid<TPoint, TCell> : IGrid<TPoint>, 
	IExplicitShape<TPoint>, IImplicitShape<TPoint>, IEnumerable<PointCellPair<TPoint, TCell>>, 
	IEnumerable

Type Parameters

TPoint
Type of the Point.
TCell
Type of the Cell.

The IGridTPoint, TCell type exposes the following members.

Properties
  NameDescription
Public propertyBounds
Returns a bounding shape that contains this explicit shape.
(Inherited from IExplicitShapeTPoint.)
Public propertyCells
Returns all the cells of this grid, that is, the values associated with all points in the grid.
Public propertyItem
Gets or sets the cell at the specified point.
Public propertyPoints
Gets all the points this shape contains.
(Inherited from IExplicitShapeTPoint.)
Top
Methods
  NameDescription
Public methodCloneStructureTNewCell
Returns a grid with exactly the same structure, but potentially holding elements of a different type.
(Inherited from IGridTPoint.)
Public methodContains
Determines whether this implicit shape contains the specified point.
(Inherited from IImplicitShapeTPoint.)
Public methodGetEnumerator (Inherited from IEnumerablePointCellPairTPoint, TCell.)
Top
Extension Methods
  NameDescription
Public Extension MethodCloneStructureTPoint, TNewCell(TNewCell)Overloaded.
Creates a grid with a new cell type, and set the value of each cell to the given initial value.
(Defined by GridExtensions.)
Public Extension MethodCloneStructureTPoint, TNewCell(FuncTNewCell)Overloaded.
Creates a grid with a new cell type, and set the value of each cell to the value return by a given function.
(Defined by GridExtensions.)
Public Extension MethodCloneStructureTPoint, TNewCell(FuncTPoint, TNewCell)Overloaded.
Creates a grid with a new cell type, and set the value of each cell to the value return by a given function.
(Defined by GridExtensions.)
Public Extension MethodGetPointsTPoint (Defined by GridExtensions.)
Public Extension MethodInPointCellPairTPoint, TCell
Selects all the points in the list also in the given shape.
(Defined by GridExtensions.)
Public Extension MethodReverseSelectTPoint
Returns a new implicit shape that projects points before testing them for membership.
(Defined by ImplicitShape.)
Public Extension MethodToStructListPointCellPairTPoint, TCell
This method performs the same function as ToList, but returns a StructList instead.
(Defined by EnumerableExtensions.)
Top
Remarks
ImplicitShape provides many methods for creating and manipulating implicit shapes.
See Also

Reference

Other Resources