Show / Hide Table of Contents

Class PairSeparationConstraint

This constraint forces one set of tiles to not be placed near another set.

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

Properties

| Edit this page View Source

MinDistance

The minimum distance between two points. Measured using manhattan distance.

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

Tiles1

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

Tiles2

Declaration
public ISet<Tile> Tiles2 { 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