Class EdgedPathSpec
Configures pathing where a given set of tiles form the path, and connect adjacently if both have appropriate "exits".
Inheritance
object
EdgedPathSpec
Implements
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public class EdgedPathSpec : IPathSpec
Properties
| Edit this page View SourceExits
For each tile on the path, the set of direction values that paths exit out of this tile.
Declaration
public IDictionary<Tile, ISet<Direction>> Exits { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<Tile, ISet<Direction>> |
RelevantCells
Set of points that must be connected by paths. If RelevantCells and RelevantTiles are null, then RelevantTiles defaults to the tiles in Exits
Declaration
public Point[] RelevantCells { get; set; }
Property Value
| Type | Description |
|---|---|
| Point[] |
RelevantTiles
Set of tiles that must be connected by paths. If RelevantCells and RelevantTiles are null, then RelevantTiles defaults to the tiles in Exits
Declaration
public ISet<Tile> RelevantTiles { get; set; }
Property Value
| Type | Description |
|---|---|
| ISet<Tile> |
TileRotation
If set, Tiles is augmented with extra copies as dictated by the tile rotations
Declaration
public TileRotation TileRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| TileRotation |
Methods
| Edit this page View SourceMakeView(TilePropagator)
Declaration
public IPathView MakeView(TilePropagator tilePropagator)
Parameters
| Type | Name | Description |
|---|---|---|
| TilePropagator | tilePropagator |
Returns
| Type | Description |
|---|---|
| IPathView |