Table of Contents

Class Grid1<TCell>

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

1D implementation of a IGrid<TPoint, TCell>.

public sealed class Grid1<TCell> : AbstractGrid<int, TCell>, IGrid<int, TCell>, IGrid<int>, IExplicitShape<int>, IImplicitShape<int>, IEnumerable<PointCellPair<int, TCell>>, IEnumerable

Type Parameters

TCell

The cell type of this grid.

Inheritance
Grid1<TCell>
Implements
IGrid<int, TCell>
Inherited Members
Extension Methods

Constructors

Grid1(IExplicitShape<int>)

Initializes a new instance of the Grid1<TCell> class with the specified shape. Cells are not initialized, they have the default value of type TCell.

Properties

Bounds

Returns a bounding shape that contains this explicit shape.

this[int]

Gets or sets the cell at the specified point.

Points

Gets all the points this shape contains.

Methods

CloneStructure<TNewCell>()

Returns a grid with exactly the same structure, but potentially holding elements of a different type.

Contains(int)

Determines whether this implicit shape contains the specified point.

See Also

IGrid<TPoint, TCell>