Show / Hide Table of Contents

Class MaxConsecutiveConstraint

The MaxConsecutiveConstraint checks that no more than the specified amount of tiles can be placed in a row along the given axes.

Inheritance
object
MaxConsecutiveConstraint
Implements
ITileConstraint
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public class MaxConsecutiveConstraint : ITileConstraint

Properties

| Edit this page View Source

Axes

Declaration
public ISet<Axis> Axes { get; set; }
Property Value
Type Description
ISet<Axis>
| Edit this page View Source

MaxCount

Declaration
public int MaxCount { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Tiles

Declaration
public ISet<Tile> Tiles { get; set; }
Property Value
Type Description
ISet<Tile>

Methods

| Edit this page View Source

Check(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

| Edit this page View Source

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

Implements

ITileConstraint
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX