Show / Hide Table of Contents

Interface ITunnelCreator

Interface for implementing an algorithm for creating a tunnel between two positions on a walkability map.

Namespace: GoRogue.MapGeneration.Connectors
Assembly: GoRogue.dll
Syntax
public interface ITunnelCreator

Methods

| Improve this Doc View Source

CreateTunnel(ISettableMapView<Boolean>, Coord, Coord)

Implements the algorithm, creating the tunnel between the two points (ensuring there is a path of positions set to true between those two points).

Declaration
void CreateTunnel(ISettableMapView<bool> map, Coord start, Coord end)
Parameters
Type Name Description
ISettableMapView<System.Boolean> map

Map to create the tunnel on.

Coord start

Start position to connect.

Coord end

End position to connect.

| Improve this Doc View Source

CreateTunnel(ISettableMapView<Boolean>, Int32, Int32, Int32, Int32)

Implements the algorithm, creating the tunnel between the two points (ensuring there is a path of positions set to true between those two points.

Declaration
void CreateTunnel(ISettableMapView<bool> map, int startX, int startY, int endX, int endY)
Parameters
Type Name Description
ISettableMapView<System.Boolean> map

Map to create the tunnel on.

System.Int32 startX

X-value of the start position to connect.

System.Int32 startY

Y-value of the start position to connect.

System.Int32 endX

X-value of the end position to connect.

System.Int32 endY

Y-value of the end position to connect.

Extension Methods

Utility.Yield<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX