Class FixedTileConstraint
Inheritance
object
FixedTileConstraint
Implements
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public class FixedTileConstraint : ITileConstraint
Properties
| Edit this page View SourcePoint
Declaration
public Point? Point { get; set; }
Property Value
| Type | Description |
|---|---|
| Point? |
Tiles
Declaration
public Tile[] Tiles { get; set; }
Property Value
| Type | Description |
|---|---|
| Tile[] |
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 |
GetRandomPoint(TilePropagator, TilePropagatorTileSet)
Declaration
public Point GetRandomPoint(TilePropagator propagator, TilePropagatorTileSet tileSet)
Parameters
| Type | Name | Description |
|---|---|---|
| TilePropagator | propagator | |
| TilePropagatorTileSet | tileSet |
Returns
| Type | Description |
|---|---|
| Point |
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 |