Class TerrainOnlyMapWalkabilityView
Grid view used as the WalkabilityView for a map when only the terrain layer can have non-walkable tiles.
Inherited Members
Namespace: GoRogue.GameFramework
Assembly: GoRogue.dll
Syntax
public class TerrainOnlyMapWalkabilityView : GridViewBase<bool>, IGridView<bool>
Remarks
This class is used instead of a LambdaGridView<T> in order to maximize performance.
Constructors
View SourceTerrainOnlyMapWalkabilityView(Map)
Constructor.
Declaration
public TerrainOnlyMapWalkabilityView(Map map)
Parameters
Type | Name | Description |
---|---|---|
Map | map | Map which this grid view gets its data from. |
Properties
View SourceHeight
The height of the grid being represented.
Declaration
public override int Height { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.Height
View Source
this[Point]
Given a position, returns the "value" associated with that location.
Declaration
public override bool this[Point pos] { get; }
Parameters
Type | Name | Description |
---|---|---|
Point | pos | Location to retrieve the value for. |
Property Value
Type | Description |
---|---|
bool | The "value" associated with the provided location. |
Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.this[SadRogue.Primitives.Point]
View Source
Width
The width of the grid being represented.
Declaration
public override int Width { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.Width