Class ConnectedConstraint
A constraint that ensures that all the relevant cells can traces a path between them. Commonly the relevancy definition matches the path one, so this effectively forces a single connected component.
Implements
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public class ConnectedConstraint : ITileConstraint
Properties
| Edit this page View SourcePathSpec
Declaration
public IPathSpec PathSpec { get; set; }
Property Value
| Type | Description |
|---|---|
| IPathSpec |
UsePickHeuristic
If set, configures the propagator to choose tiles that lie on the path first. This can help avoid contradictions in many cases
Declaration
public bool UsePickHeuristic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceCheck(TilePropagator)
Called frequently during generation to help maintain the constraint.
Declaration
public void Check(TilePropagator propagator)
Parameters
| Type | Name | Description |
|---|---|---|
| TilePropagator | propagator | The propagator to constrain |
Init(TilePropagator)
Called once when the propagator first initializes.
Declaration
public void Init(TilePropagator propagator)
Parameters
| Type | Name | Description |
|---|---|---|
| TilePropagator | propagator | The propagator to constrain |