Wiki
Clone wikiRogueSharp / RogueSharp / Map / GetCellsInArea
MapGetCellsInArea Method
Get an IEnumerable of Cells in a square area around the Origin Cell
Namespace: RogueSharp
Assembly:
Syntax
public IEnumerable<Cell> GetCellsInArea( int xOrigin, int yOrigin, int distance )
Parameters
xOrigin
Type: SystemInt32
X location of the Origin Cell with 0 as the farthest left
yOrigin
Type: SystemInt32
Y location of the Origin Cell with 0 as the top
distance
Type: SystemInt32
The number of Cells to get in each direction from the Origin Cell
Return Value
Type: IEnumerableCell
IEnumerable of Cells in a square area around the Origin Cell
Implements
IMapGetCellsInArea(Int32, Int32, Int32)
See Also
Reference
Map Class
RogueSharp Namespace
[5]: 2014-2016 Faron Bracy
Updated